Changeset 1aecaec in git
- Timestamp:
- Nov 13, 2006, 3:12:45 PM (17 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- 80f80553bbef4f6821f903af441f6f5a3a50eba3
- Parents:
- d8847097b316a3093d010f81ca18aff328abb63c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/NTLconvert.cc
rd88470 r1aecaec 1 /* $Id: NTLconvert.cc,v 1. 19 2006-09-25 12:33:36Singular Exp $ */1 /* $Id: NTLconvert.cc,v 1.20 2006-11-13 14:12:45 Singular Exp $ */ 2 2 #include <config.h> 3 3 … … 572 572 //////////////////////////////////////////////////////////////////////////////// 573 573 574 static char *cf_stringtemp =NULL;575 static char *cf_stringtemp2 =NULL;574 static char *cf_stringtemp; 575 static char *cf_stringtemp2; 576 576 static int cf_stringtemp_l=0; 577 577 CanonicalForm convertZZ2CF(ZZ coefficient) … … 579 579 long coeff_long; 580 580 //CanonicalForm tmp=0; 581 if (cf_stringtemp_l==0)582 {583 cf_stringtemp=(char *)Alloc(1023);584 cf_stringtemp2=(char *)Alloc(1023);585 cf_stringtemp[0]='\0';586 cf_stringtemp2[0]='\0';587 cf_stringtemp_l=1023;588 }589 581 char dummy[2]; 590 582 int minusremainder=0; … … 604 596 { 605 597 // coefficient is not immediate (gmp-number) 598 if (cf_stringtemp_l==0) 599 { 600 cf_stringtemp=(char *)Alloc(1023); 601 cf_stringtemp2=(char *)Alloc(1023); 602 cf_stringtemp[0]='\0'; 603 cf_stringtemp2[0]='\0'; 604 cf_stringtemp_l=1023; 605 } 606 606 607 607 // convert coefficient to char* (input for gmp)
Note: See TracChangeset
for help on using the changeset viewer.