Changeset 2e2558 in git for Singular


Ignore:
Timestamp:
Aug 19, 2022, 2:35:35 PM (20 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
7a5c8937ee945bc61b1570ceab79f2ad2125740a
Parents:
020575b408baddf459bbf4b2c233904f198de039
Message:
simplify blackbox_op (tst:New/VecField.tst)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r020575 r2e2558  
    89328932      if (bb!=NULL)
    89338933      {
    8934         return bb->blackbox_Op2(op,res,a,b);
     8934        if(!bb->blackbox_Op2(op,res,a,b)) return FALSE;
     8935        // if not defined, try generic (attrib, ..)
    89358936      }
    89368937      else
     
    89438944      {
    89448945        if(!bb->blackbox_Op2(op,res,a,b)) return FALSE;
    8945         // else: no op defined
     8946        // if not defined, try generic (attrib, ..)
    89468947      }
    89478948      else
     
    91189119        res->rtyp=op;
    91199120        res->data=bb->blackbox_Init(bb);
    9120         if(!bb->blackbox_Assign(res,a)) return FALSE;
     9121        return bb->blackbox_Assign(res,a);
    91219122      }
    91229123      else
     
    91289129      if (bb!=NULL)
    91299130      {
    9130         return bb->blackbox_Op1(op,res,a);
     9131        if(!bb->blackbox_Op1(op,res,a)) return FALSE;
     9132        // if not defined, try generic routines (attrib, defined,..)
    91319133      }
    91329134      else
     
    93309332      if (bb!=NULL)
    93319333      {
    9332         return bb->blackbox_Op3(op,res,a,b,c);
     9334        if(!bb->blackbox_Op3(op,res,a,b,c)) return FALSE;
     9335        // otherwise, try defaul (attrib,..)
    93339336      }
    93349337      else
     
    94419444      if (bb!=NULL)
    94429445      {
    9443         return bb->blackbox_OpM(op,res,a);
     9446        if(!bb->blackbox_OpM(op,res,a)) return FALSE;
     9447        // otherwise, try default
    94449448      }
    94459449      else
Note: See TracChangeset for help on using the changeset viewer.