mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-05 04:30:38 +03:00
Performance optimization for sqlite3VdbeAddOp4().
FossilOrigin-Name: 04716c907bf9fc9b827e18fdc7b4e1069e201536
This commit is contained in:
@@ -313,7 +313,11 @@ int sqlite3VdbeAddOp4Int(
|
||||
int p4 /* The P4 operand as an integer */
|
||||
){
|
||||
int addr = sqlite3VdbeAddOp3(p, op, p1, p2, p3);
|
||||
sqlite3VdbeChangeP4(p, addr, SQLITE_INT_TO_PTR(p4), P4_INT32);
|
||||
if( p->db->mallocFailed==0 ){
|
||||
VdbeOp *pOp = &p->aOp[addr];
|
||||
pOp->p4type = P4_INT32;
|
||||
pOp->p4.i = p4;
|
||||
}
|
||||
return addr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user