From 7c442512162ab659a70d28073e18a5ec932e73a9 Mon Sep 17 00:00:00 2001 From: andy Date: Sat, 12 Mar 2005 15:51:37 +0000 Subject: [PATCH] Oops, fixed the wrong test --- simgear/nasal/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/nasal/string.c b/simgear/nasal/string.c index 4d438f08..9da446f4 100644 --- a/simgear/nasal/string.c +++ b/simgear/nasal/string.c @@ -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++; } -- 2.39.5