Changeset 5edb77 in git for Singular/iparith.cc


Ignore:
Timestamp:
Nov 20, 2012, 7:16:16 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
e3b071b7b8022789a70d9aeead7d9b8159679c57
Parents:
8e51caea071beef6e0f3c31472a9553c63c8df6d
Message:
fix: iiMake_proc (gcc 4.7)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r8e51ca r5edb77  
    15571557  int typ;
    15581558  BOOLEAN t=FALSE;
     1559  idhdl tmp_proc=NULL;
    15591560  if ((u->rtyp!=IDHDL)||(u->e!=NULL))
    15601561  {
    1561     idrec tmp_proc;
    1562     tmp_proc.id="_auto";
    1563     tmp_proc.typ=PROC_CMD;
    1564     tmp_proc.data.pinf=(procinfo *)u->Data();
    1565     tmp_proc.ref=1;
    1566     d=u->data; u->data=(void *)&tmp_proc;
     1562    tmp_proc=(idhdl)omAlloc0(sizeof(idrec));
     1563    tmp_proc->id="_auto";
     1564    tmp_proc->typ=PROC_CMD;
     1565    tmp_proc->data.pinf=(procinfo *)u->Data();
     1566    tmp_proc->ref=1;
     1567    d=u->data; u->data=(void *)tmp_proc;
    15671568    e=u->e; u->e=NULL;
    15681569    t=TRUE;
    15691570    typ=u->rtyp; u->rtyp=IDHDL;
    15701571  }
    1571   leftv sl;
     1572  BOOLEAN sl;
    15721573  if (u->req_packhdl==currPack)
    15731574    sl = iiMake_proc((idhdl)u->data,NULL,v);
     
    15791580    u->data=d;
    15801581    u->e=e;
    1581   }
    1582   if (sl==NULL)
    1583   {
    1584     return TRUE;
    1585   }
    1586   else
    1587   {
    1588     memcpy(res,&iiRETURNEXPR,sizeof(sleftv));
    1589   }
     1582    omFreeSize(tmp_proc,sizeof(idrec));
     1583  }
     1584  if (sl) return TRUE;
     1585  memcpy(res,&iiRETURNEXPR,sizeof(sleftv));
    15901586  iiRETURNEXPR.Init();
    15911587  return FALSE;
Note: See TracChangeset for help on using the changeset viewer.