Changeset 32545c in git for Singular/iparith.cc


Ignore:
Timestamp:
Apr 2, 2015, 4:52:44 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'e7cc1ebecb61be8b9ca6c18016352af89940b21a')
Children:
cec9b007f86b234905874a3be5ad6ff7d0661ae4
Parents:
92a50b83d0933aab94cc832bf585c02a0dce9d3d
Message:
add: use bb types for type conversion (via bb_Assign)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r92a50b r32545c  
    83158315    int at=a->Typ();
    83168316    // handling bb-objects ----------------------------------------------------
    8317     if (at>MAX_TOK)
     8317    if(op>MAX_TOK) // explicit type conversion to bb
     8318    {
     8319      blackbox *bb=getBlackboxStuff(op);
     8320      if (bb!=NULL)
     8321      {
     8322        res->rtyp=op;
     8323        res->data=bb->blackbox_Init(bb);
     8324        if(!bb->blackbox_Assign(res,a)) return FALSE;
     8325        if (errorreported) return TRUE;
     8326      }
     8327      else          return TRUE;
     8328    }
     8329    else if (at>MAX_TOK) // argument is of bb-type
    83188330    {
    83198331      blackbox *bb=getBlackboxStuff(at);
Note: See TracChangeset for help on using the changeset viewer.