diff options
author | danielk1977 <danielk1977@noemail.net> | 2008-11-19 16:52:44 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2008-11-19 16:52:44 +0000 |
commit | f3d3c27a0c9db087cfd04f7fe2eb67c90e34b4f4 (patch) | |
tree | 669ae0c43b7e4799cc239a6669a1078c722bd462 /src/expr.c | |
parent | a03396aafbb3e92d8d33126b986e2d0b426989fb (diff) | |
download | sqlite-f3d3c27a0c9db087cfd04f7fe2eb67c90e34b4f4.tar.gz sqlite-f3d3c27a0c9db087cfd04f7fe2eb67c90e34b4f4.zip |
Fix some compiler warnings that show up when building the amalgamation only. (CVS 5927)
FossilOrigin-Name: d1abe8a1c9a990b02c71d6c249436381c9fde443
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/expr.c b/src/expr.c index a7f7ffcc4..c030b385c 100644 --- a/src/expr.c +++ b/src/expr.c @@ -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.403 2008/11/19 09:05:27 danielk1977 Exp $ +** $Id: expr.c,v 1.404 2008/11/19 16:52:44 danielk1977 Exp $ */ #include "sqliteInt.h" #include <ctype.h> @@ -1460,10 +1460,11 @@ static char *dup8bytes(Vdbe *v, const char *in){ */ static void codeReal(Vdbe *v, const char *z, int n, int negateFlag, int iMem){ assert( z || v==0 || sqlite3VdbeDb(v)->mallocFailed ); + assert( !z || !isdigit(z[n]) ); + UNUSED_PARAMETER(n); if( z ){ double value; char *zV; - assert( !isdigit(z[n]) ); sqlite3AtoF(z, &value); if( sqlite3IsNaN(value) ){ sqlite3VdbeAddOp2(v, OP_Null, 0, iMem); |