mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-16 23:02:26 +03:00
Added macros to convert between 32-bit ints and 64-bit ptrs to avoid compiler warnings. (CVS 5378)
FossilOrigin-Name: 6cdb6841ff4683e424ef394733da9c24f5602570
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
** so is applicable. Because this module is responsible for selecting
|
||||
** indices, you might also think of this module as the "query optimizer".
|
||||
**
|
||||
** $Id: where.c,v 1.313 2008/07/08 19:45:02 drh Exp $
|
||||
** $Id: where.c,v 1.314 2008/07/08 22:28:49 shane Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
|
||||
@@ -2605,7 +2605,7 @@ WhereInfo *sqlite3WhereBegin(
|
||||
testcase( op==OP_MoveLe );
|
||||
testcase( op==OP_MoveLt );
|
||||
sqlite3VdbeAddOp4(v, op, iIdxCur, nxt, regBase,
|
||||
(char*)nConstraint, P4_INT32);
|
||||
SQLITE_INT_TO_PTR(nConstraint), P4_INT32);
|
||||
|
||||
/* Load the value for the inequality constraint at the end of the
|
||||
** range (if any).
|
||||
@@ -2627,7 +2627,7 @@ WhereInfo *sqlite3WhereBegin(
|
||||
testcase( op==OP_IdxGE );
|
||||
testcase( op==OP_IdxLT );
|
||||
sqlite3VdbeAddOp4(v, op, iIdxCur, nxt, regBase,
|
||||
(char*)nConstraint, P4_INT32);
|
||||
SQLITE_INT_TO_PTR(nConstraint), P4_INT32);
|
||||
sqlite3VdbeChangeP5(v, endEq!=bRev);
|
||||
|
||||
/* If there are inequality constraints, check that the value
|
||||
|
||||
Reference in New Issue
Block a user