Bug #1308 ยป bigdecimal2.patch
ext/bigdecimal/bigdecimal.c (working copy) | ||
---|---|---|
gnAlloc--; /* Decrement allocation count */
|
||
if(gnAlloc==0) {
|
||
printf(" *************** All memories allocated freed ****************");
|
||
getchar();
|
||
}
|
||
if(gnAlloc<0) {
|
||
printf(" ??????????? Too many memory free calls(%d) ?????????????\n",gnAlloc);
|
||
getchar();
|
||
}
|
||
#endif /* _DEBUG */
|
||
}
|
||
... | ... | |
div = v/10;
|
||
v = v - div*10;
|
||
if (fracf == 0) {
|
||
for(i=ix+1;i<y->Prec;i++) {
|
||
for(i=ix+1;(U_LONG)i<y->Prec;i++) {
|
||
if (y->frac[i]%BASE) {
|
||
fracf = 1;
|
||
break;
|