1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-08 03:22:21 +03:00

Fix a compiler warning. (CVS 604)

FossilOrigin-Name: 637ee587b5438c54ba2d8bd8fc15e584abb70946
This commit is contained in:
drh
2002-06-02 18:22:06 +00:00
parent 04738cb9ff
commit bd790ee395
3 changed files with 10 additions and 10 deletions

View File

@@ -12,7 +12,7 @@
** This file contains routines used for analyzing expressions and
** for generating VDBE code that evaluates expressions in SQLite.
**
** $Id: expr.c,v 1.68 2002/06/02 18:19:00 drh Exp $
** $Id: expr.c,v 1.69 2002/06/02 18:22:06 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -347,9 +347,9 @@ int sqliteExprIsInteger(Expr *p, int *pValue){
return 1;
}
case TK_STRING: {
char *z = p->token.z;
const char *z = p->token.z;
int n = p->token.n;
if( n>0 && z=='-' ){ z++; n--; }
if( n>0 && z[0]=='-' ){ z++; n--; }
while( n>0 && *z && isdigit(*z) ){ z++; n--; }
if( n==0 ){
*pValue = atoi(p->token.z);