diff options
author | danielk1977 <danielk1977@noemail.net> | 2007-05-16 17:50:45 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2007-05-16 17:50:45 +0000 |
commit | 2be2be92c4139601ff809e2f0437d22b2fcde97d (patch) | |
tree | 29b48b2f5f545df2a1208cfbfb0b49050da9e2f5 /src/util.c | |
parent | 1cc5ed815011e57e4da392759ae7150e644d30bf (diff) | |
download | sqlite-2be2be92c4139601ff809e2f0437d22b2fcde97d.tar.gz sqlite-2be2be92c4139601ff809e2f0437d22b2fcde97d.zip |
Avoid passing a negative value to isspace() in a couple places. (CVS 4016)
FossilOrigin-Name: d5db8be3680e16a74edb385dfa3730c66d5f4fd6
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.c b/src/util.c index 031c07b68..a5fb28f6e 100644 --- a/src/util.c +++ b/src/util.c @@ -14,7 +14,7 @@ ** This file contains functions for allocating memory, comparing ** strings, and stuff like that. ** -** $Id: util.c,v 1.204 2007/05/16 17:28:43 danielk1977 Exp $ +** $Id: util.c,v 1.205 2007/05/16 17:50:46 danielk1977 Exp $ */ #include "sqliteInt.h" #include "os.h" @@ -246,7 +246,7 @@ int sqlite3AtoF(const char *z, double *pResult){ int sign = 1; const char *zBegin = z; LONGDOUBLE_TYPE v1 = 0.0; - while( isspace(*z) ) z++; + while( isspace(*(u8*)z) ) z++; if( *z=='-' ){ sign = -1; z++; @@ -314,7 +314,7 @@ int sqlite3Atoi64(const char *zNum, i64 *pNum){ i64 v = 0; int neg; int i, c; - while( isspace(*zNum) ) zNum++; + while( isspace(*(u8*)zNum) ) zNum++; if( *zNum=='-' ){ neg = 1; zNum++; |