Changeset 261735d in git
- Timestamp:
- Jun 8, 2005, 3:51:13 PM (18 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- a8bb72dd226250b4276aefb627165cae6b4f0ffb
- Parents:
- bfdab9335d35ef37b6b14b9aa9d1bcb7e08d20e4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/hutil.cc
rbfdab9 r261735d 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: hutil.cc,v 1. 6 2005-06-08 12:34:59Singular Exp $ */4 /* $Id: hutil.cc,v 1.7 2005-06-08 13:51:13 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: Utilities for staircase operations … … 41 41 if (hisModule < 0) 42 42 hisModule = 0; 43 if (S )43 if (S!=NULL) 44 44 { 45 45 si = S->m; … … 51 51 sl = 0; 52 52 } 53 if (Q )53 if (Q!=NULL) 54 54 { 55 55 qi = Q->m; … … 61 61 ql = 0; 62 62 } 63 if ( !(sl + ql))63 if ((sl + ql) > 0) 64 64 { 65 65 *Nexist = 0; … … 67 67 } 68 68 ss = si; 69 for (i = sl; i ; i--)69 for (i = sl; i>0; i--) 70 70 { 71 71 if (*ss!=0) … … 74 74 } 75 75 ss = qi; 76 for (i = ql; i ; i--)76 for (i = ql; i>0; i--) 77 77 { 78 78 if (*ss!=0) … … 89 89 if (*si!=NULL) 90 90 { 91 *ek = ( int*) omAlloc((pVariables+1)*sizeof(int));91 *ek = (scmon) omAlloc((pVariables+1)*sizeof(int)); 92 92 pGetExpV(*si, *ek); 93 93 ek++; … … 95 95 si++; 96 96 } 97 for (i = ql; i ; i--)97 for (i = ql; i>0; i--) 98 98 { 99 99 if (*qi!=NULL) 100 100 { 101 *ek = ( int*) omAlloc((pVariables+1)*sizeof(int));101 *ek = (scmon) omAlloc((pVariables+1)*sizeof(int)); 102 102 pGetExpV(*qi, *ek); 103 103 ek++; … … 121 121 if (i == 0) return; 122 122 } 123 for (i=pVariables; i ; i--)123 for (i=pVariables; i>0; i--) 124 124 { 125 125 x = pWeight(i); … … 178 178 loop 179 179 { 180 if (stc[j][i] )180 if (stc[j][i]>0) 181 181 { 182 182 i1++;
Note: See TracChangeset
for help on using the changeset viewer.