Changeset e40145 in git for Singular/ipassign.cc
- Timestamp:
- Nov 20, 2013, 3:57:53 PM (10 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- a9c2986e020e2efafd15932b4d1b2b2fa77407e4
- Parents:
- 9aa61ab499a2001f8d1e5112b9908742b2f69659
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-11-20 15:57:53+01:00
- git-committer:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-11-20 16:54:42+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ipassign.cc
r9aa61a re40145 1222 1222 hh = hh->next; 1223 1223 } 1224 if (IDINTVEC((idhdl)l->data)!=NULL) delete IDINTVEC((idhdl)l->data); 1225 IDINTVEC((idhdl)l->data)=iv; 1224 if (l->rtyp==IDHDL) 1225 { 1226 if (IDINTVEC((idhdl)l->data)!=NULL) delete IDINTVEC((idhdl)l->data); 1227 IDINTVEC((idhdl)l->data)=iv; 1228 } 1229 else 1230 { 1231 if (l->data!=NULL) delete ((intvec*)l->data); 1232 l->data=(char*)iv; 1233 } 1226 1234 return FALSE; 1227 1235 } … … 1455 1463 if (/*(ld->rtyp!=LIST_CMD) 1456 1464 &&*/(ld->e==NULL) 1457 && (ld->Typ()!=r->Typ()))1465 && (ld->Typ()!=r->Typ())) 1458 1466 { 1459 1467 sleftv tmp; 1460 1468 memset(&tmp,0,sizeof(sleftv)); 1461 1469 tmp.rtyp=DEF_CMD; 1470 b=iiAssign(&tmp,r); 1471 ld->CleanUp(); 1472 memcpy(ld,&tmp,sizeof(sleftv)); 1473 } 1474 else if ((ld->e==NULL) 1475 && (ld->Typ()==r->Typ()) 1476 && (ld->Typ()<MAX_TOK)) 1477 { 1478 sleftv tmp; 1479 memset(&tmp,0,sizeof(sleftv)); 1480 tmp.rtyp=r->Typ(); 1481 tmp.data=(char*)idrecDataInit(r->Typ()); 1462 1482 b=iiAssign(&tmp,r); 1463 1483 ld->CleanUp();
Note: See TracChangeset
for help on using the changeset viewer.