Changeset bca341 in git for libpolys/polys/ext_fields/algext.cc
- Timestamp:
- Jun 7, 2012, 5:43:32 PM (11 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
- Children:
- f0b795a3ce2b873e7524b0af7df2ccd84a3fc628
- Parents:
- 6284186fbb128f1c5a0c99ff170cec4bb5afd5a3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/ext_fields/algext.cc
r628418 rbca341 206 206 naTest(a); 207 207 poly aAsPoly = (poly)a; 208 if ( !p_IsConstant(aAsPoly, naRing)) return FALSE;208 if ((a==NULL) || (!p_IsConstant(aAsPoly, naRing))) return FALSE; 209 209 return n_IsOne(p_GetCoeff(aAsPoly, naRing), naCoeffs); 210 210 } … … 214 214 naTest(a); 215 215 poly aAsPoly = (poly)a; 216 if ( !p_IsConstant(aAsPoly, naRing)) return FALSE;216 if ((a==NULL) || (!p_IsConstant(aAsPoly, naRing))) return FALSE; 217 217 return n_IsMOne(p_GetCoeff(aAsPoly, naRing), naCoeffs); 218 218 } … … 600 600 p_Test((poly)reducer, naRing); 601 601 #endif 602 p_PolyDiv(p, reducer, FALSE, naRing); 602 if ((p!=NULL) && (p_GetExp(p,1,naRing)>=p_GetExp(reducer,1,naRing))) 603 { 604 p_PolyDiv(p, reducer, FALSE, naRing); 605 } 603 606 } 604 607
Note: See TracChangeset
for help on using the changeset viewer.