Changeset 6ac003 in git for libpolys/polys/ext_fields/transext.cc
- Timestamp:
- Nov 9, 2012, 2:14:39 PM (11 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
- Children:
- a2da9ea07b27576399fa96413ca380533784bd58
- Parents:
- e0c0a7d767e7963785151c5a84d9afbc805dd263
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2012-11-09 14:14:39+01:00
- git-committer:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2012-11-09 14:40:33+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/ext_fields/transext.cc
re0c0a7 r6ac003 528 528 number ntInit(long i, const coeffs cf) 529 529 { 530 if (i == 0) return NULL; 531 else 532 { 533 fraction result = (fraction)omAlloc0Bin(fractionObjectBin); 534 NUM(result) = p_ISet(i, ntRing); 535 //DEN(result) = NULL; // done by omAlloc0Bin 536 //COM(result) = 0; // done by omAlloc0Bin 537 ntTest((number)result); 538 return (number)result; 539 } 530 if (i != 0) 531 { 532 poly p=p_ISet(i, ntRing); 533 if (p!=NULL) 534 { 535 fraction result = (fraction)omAlloc0Bin(fractionObjectBin); 536 NUM(result) = p; 537 //DEN(result) = NULL; // done by omAlloc0Bin 538 //COM(result) = 0; // done by omAlloc0Bin 539 ntTest((number)result); 540 return (number)result; 541 } 542 } 543 return NULL; 540 544 } 541 545 … … 544 548 number ntInit(poly p, const coeffs cf) 545 549 { 546 if (p == 0) return NULL;550 if (p == NULL) return NULL; 547 551 548 552 number g;
Note: See TracChangeset
for help on using the changeset viewer.