Oops, fixed the wrong test

This commit is contained in:
andy 2005-03-12 15:51:37 +00:00
parent 26e70664d6
commit 7c44251216

View File

@ -219,7 +219,7 @@ static int decprint(int val, unsigned char* s)
{
int p=1, i=0;
if(val == 0) { *s = '0'; return 1; }
while(p < 999999999 && p*10 < val) p *= 10;
while(p <= 999999999 && p*10 <= val) p *= 10;
while(p > 0) {
int count = 0;
while(val >= p) { val -= p; count++; }