also be extra careful to avoid wrapping the circular buffer early
if (gotrad) break;
gotrad = 1;
lrp = dc;
if (gotrad) break;
gotrad = 1;
lrp = dc;
- } else if (k < KMAX-2) {
+ } else if (k < KMAX-3) {
dc++;
if (c!='0') lnz = dc;
if (j) x[k] = x[k]*10 + c-'0';
dc++;
if (c!='0') lnz = dc;
if (j) x[k] = x[k]*10 + c-'0';
- if (c!='0') x[KMAX-3] |= 1;
+ if (c!='0') x[KMAX-4] |= 1;
}
/* Align incomplete final B1B digit */
}
/* Align incomplete final B1B digit */
for (; j<9; j++) x[k]*=10;
k++;
j=0;
for (; j<9; j++) x[k]*=10;
k++;
j=0;