Changeset 1f637e in git for kernel/kstd2.cc
- Timestamp:
- Jul 19, 2011, 5:11:57 PM (13 years ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- 1c4e9a5798bda4bc92d0013041b99005a50a7d7c
- Parents:
- 6ed8c424bfe6fd9dc397bfdde3e8acf884469342
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-07-19 17:11:57+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:52:40+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kstd2.cc
r6ed8c4 r1f637e 1284 1284 if (ecartWeights) 1285 1285 { 1286 omFreeSize((ADDRESS)ecartWeights,( pVariables+1)*sizeof(short));1286 omFreeSize((ADDRESS)ecartWeights,((currRing->N)+1)*sizeof(short)); 1287 1287 ecartWeights=NULL; 1288 1288 } … … 1796 1796 if (ecartWeights) 1797 1797 { 1798 omFreeSize((ADDRESS)ecartWeights,( pVariables+1)*sizeof(short));1798 omFreeSize((ADDRESS)ecartWeights,((currRing->N)+1)*sizeof(short)); 1799 1799 ecartWeights=NULL; 1800 1800 } … … 1999 1999 //else 2000 2000 { 2001 ecartWeights=(short *)omAlloc(( pVariables+1)*sizeof(short));2001 ecartWeights=(short *)omAlloc(((currRing->N)+1)*sizeof(short)); 2002 2002 /*uses automatic computation of the ecartWeights to set them*/ 2003 2003 kEcartWeights(F->m,IDELEMS(F)-1,ecartWeights); … … 2006 2006 if (TEST_OPT_PROT) 2007 2007 { 2008 for(i=1; i<= pVariables; i++)2008 for(i=1; i<=(currRing->N); i++) 2009 2009 Print(" %d",ecartWeights[i]); 2010 2010 PrintLn();
Note: See TracChangeset
for help on using the changeset viewer.