diff options
author | shane <shane@noemail.net> | 2008-07-08 22:28:48 +0000 |
---|---|---|
committer | shane <shane@noemail.net> | 2008-07-08 22:28:48 +0000 |
commit | 1fc4129df7b6a304f050a5aadfaed4196fbd014e (patch) | |
tree | 824187b97d42e73531a7ad2bf0b84e3de0c2e1fc /src/vdbeaux.c | |
parent | c6f66c534914647794b1d2167b2f1e2d92aa0fa0 (diff) | |
download | sqlite-1fc4129df7b6a304f050a5aadfaed4196fbd014e.tar.gz sqlite-1fc4129df7b6a304f050a5aadfaed4196fbd014e.zip |
Added macros to convert between 32-bit ints and 64-bit ptrs to avoid compiler warnings. (CVS 5378)
FossilOrigin-Name: 6cdb6841ff4683e424ef394733da9c24f5602570
Diffstat (limited to 'src/vdbeaux.c')
-rw-r--r-- | src/vdbeaux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vdbeaux.c b/src/vdbeaux.c index 0a7dc6e6f..b774d994e 100644 --- a/src/vdbeaux.c +++ b/src/vdbeaux.c @@ -14,7 +14,7 @@ ** to version 2.8.7, all this code was combined into the vdbe.c source file. ** But that file was getting too big so this subroutines were split out. ** -** $Id: vdbeaux.c,v 1.394 2008/07/08 19:34:07 drh Exp $ +** $Id: vdbeaux.c,v 1.395 2008/07/08 22:28:49 shane Exp $ */ #include "sqliteInt.h" #include <ctype.h> @@ -535,7 +535,7 @@ void sqlite3VdbeChangeP4(Vdbe *p, int addr, const char *zP4, int n){ if( n==P4_INT32 ){ /* Note: this cast is safe, because the origin data point was an int ** that was cast to a (const char *). */ - pOp->p4.i = (int)zP4; + pOp->p4.i = SQLITE_PTR_TO_INT(zP4); pOp->p4type = n; }else if( zP4==0 ){ pOp->p4.p = 0; |