Changeset 07a268 in git
- Timestamp:
- Mar 5, 2001, 5:39:02 PM (22 years ago)
- Branches:
- (u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
- Children:
- 7e30dd301152a4f9cb4143f7ae78d529b3af303b
- Parents:
- 6b866722ecda917ce3e75d905f34c31c8d5d5c98
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/weight.cc
r6b86672 r07a268 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: weight.cc,v 1.1 8 2000-12-20 11:15:50 obachmanExp $ */4 /* $Id: weight.cc,v 1.19 2001-03-05 16:39:02 mschulze Exp $ */ 5 5 6 6 /* … … 242 242 { 243 243 short *s=(short *)omAlloc((pVariables+1)*sizeof(short)); 244 int len= iv->length();245 i nt i;246 247 for (i=pVariables;i>len;i--)244 int len=0; 245 if(iv!=NULL) 246 len=iv->length(); 247 for(int i=pVariables;i>len;i--) 248 248 s[i]= 1; 249 for 249 for(;i>0;i--) 250 250 s[i]= (*iv)[i-1]; 251 251 return s;
Note: See TracChangeset
for help on using the changeset viewer.