diff options
Diffstat (limited to 'src/printf.c')
-rw-r--r-- | src/printf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/printf.c b/src/printf.c index 3be48c9b7..b099523dc 100644 --- a/src/printf.c +++ b/src/printf.c @@ -46,7 +46,6 @@ ** + All functions are fully reentrant. ** */ -#include <ctype.h> #include "sqliteInt.h" /* @@ -262,7 +261,7 @@ static int vxprintf( } c = *++fmt; }else{ - while( isdigit(c) ){ + while( c>='0' && c<='9' ){ width = width*10 + c - '0'; c = *++fmt; } @@ -282,7 +281,7 @@ static int vxprintf( #endif c = *++fmt; }else{ - while( isdigit(c) ){ + while( c>='0' && c<='9' ){ precision = precision*10 + c - '0'; c = *++fmt; } |