Changeset 68b081 in git
- Timestamp:
- Nov 20, 2009, 5:57:04 PM (14 years ago)
- Branches:
- (u'spielwiese', '5d369c3cbad1a1bf2d5c856a48fb8a30b51cec3b')
- Children:
- e2e3ad8f623ca6b9cc80a9bab430038d51d0e8e7
- Parents:
- 199de12d16fc9f0a48f4cdeb2307a5ad2d7c1a54
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/NTLconvert.cc
r199de1 r68b081 617 617 dummy[0]=numbers[to_long(coefficient)]; 618 618 //NTL_SNS 619 strcat(cf_stringtemp,dummy); 619 l++; 620 cf_stringtemp[l-1]=dummy[0]; 621 cf_stringtemp[l]='\0'; 620 622 //tmp*=10; tmp+=to_long(coefficient); 621 623 … … 628 630 629 631 //reverse the list to obtain the correct string 630 int len=631 632 //NTL_SNS 632 strlen(cf_stringtemp); 633 for (int i=len-1;i>=0;i--) 634 { 635 cf_stringtemp2[len-i-1+minusremainder]=cf_stringtemp[i]; 636 } 637 cf_stringtemp2[len+minusremainder]='\0'; 633 for (int i=l-1;i>=0;i--) // l ist the position of \0 634 { 635 cf_stringtemp2[l-i-1+minusremainder]=cf_stringtemp[i]; 636 } 637 cf_stringtemp2[l+minusremainder]='\0'; 638 638 } 639 639
Note: See TracChangeset
for help on using the changeset viewer.