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

Use intptr_t definition to silence warnings about ptr-int casts (CVS 4824)

FossilOrigin-Name: 54839a84e6ce080ea8a0f6ce32acaa053d20f311
This commit is contained in:
mlcreech
2008-03-06 07:35:21 +00:00
parent b87057f26d
commit 12d4082f26
9 changed files with 33 additions and 31 deletions

View File

@@ -529,7 +529,9 @@ void sqlite3VdbeChangeP4(Vdbe *p, int addr, const char *zP4, int n){
freeP4(pOp->p4type, pOp->p4.p);
pOp->p4.p = 0;
if( n==P4_INT32 ){
pOp->p4.i = (int)zP4;
/* Note: this cast is safe, because the origin data point was an int
** that was cast to a (const char *). */
pOp->p4.i = (int)(intptr_t)zP4;
pOp->p4type = n;
}else if( zP4==0 ){
pOp->p4.p = 0;