Fix uses of ctype functions (ex: isspace()) on signed characters in test

programs and in some obscure extensions.  No changes to the core.

FossilOrigin-Name: 34eb6911afee09e779318b79baf953f616200128
This commit is contained in:
drh
2015-10-29 13:48:15 +00:00
parent de4148e304
commit c56fac7483
19 changed files with 139 additions and 110 deletions
+2 -1
View File
@@ -67,6 +67,7 @@
#include <stdarg.h>
#include <ctype.h>
#include "sqlite3.h"
#define ISDIGIT(X) isdigit((unsigned char)(X))
/*
** All global variables are gathered into the "g" singleton.
@@ -383,7 +384,7 @@ static int integerValue(const char *zArg){
zArg++;
}
}else{
while( isdigit(zArg[0]) ){
while( ISDIGIT(zArg[0]) ){
v = v*10 + zArg[0] - '0';
zArg++;
}