[SCM] an open source computer algebra system branch, cleanedupstream, updated. 6125e540ca6d66c307958938a9d53b245507c323
Bernhard R. Link
brlink at debian.org
Tue Apr 24 15:53:12 UTC 2012
The following commit has been merged in the cleanedupstream branch:
commit b53c620d4de5ef9eb3f30a254a9c1f11e06681ad
Author: Hans Schoenemann <hannes at mathematik.uni-kl.de>
Date: Thu Feb 16 14:29:57 2012 +0100
fix: copying lists within newstruct
diff --git a/Singular/newstruct.cc b/Singular/newstruct.cc
index 94ff9fc..0090148 100644
--- a/Singular/newstruct.cc
+++ b/Singular/newstruct.cc
@@ -94,7 +94,12 @@ lists lCopy_newstruct(lists L)
N->m[n].data=idrecDataInit(L->m[n].rtyp);
}
}
- else if((L->m[n].rtyp>MAX_TOK)||(L->m[n].rtyp==LIST_CMD))
+ else if(L->m[n].rtyp==LIST_CMD)
+ {
+ N->m[n].rtyp=L->m[n].rtyp;
+ N->m[n].data=(void *)lCopy((lists)(L->m[n].data));
+ }
+ else if(L->m[n].rtyp>MAX_TOK)
{
N->m[n].rtyp=L->m[n].rtyp;
N->m[n].data=(void *)lCopy_newstruct((lists)(L->m[n].data));
--
an open source computer algebra system
More information about the debian-science-commits
mailing list