aboutsummaryrefslogtreecommitdiff
path: root/src/wherecode.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-01-16 15:12:35 +0000
committerdrh <drh@noemail.net>2016-01-16 15:12:35 +0000
commit9b34abee30744c01fcef6570c78859b54c1df256 (patch)
tree59f6e91177c9818a35934e2f12679f4730244c89 /src/wherecode.c
parent095fb474efec4919c103527e5b0fbe02458f5d2d (diff)
downloadsqlite-9b34abee30744c01fcef6570c78859b54c1df256.tar.gz
sqlite-9b34abee30744c01fcef6570c78859b54c1df256.zip
Use sqlite3VdbeAddOp4() rather than a separate sqlite3VdbeChangeP4() call, for
a slightly smaller and faster binary. FossilOrigin-Name: a4258cd4613c55acacb5c7b61faa3de7eb0759d2
Diffstat (limited to 'src/wherecode.c')
-rw-r--r--src/wherecode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wherecode.c b/src/wherecode.c
index bc72e0ac7..9d53a20a6 100644
--- a/src/wherecode.c
+++ b/src/wherecode.c
@@ -327,8 +327,7 @@ static void codeApplyAffinity(Parse *pParse, int base, int n, char *zAff){
/* Code the OP_Affinity opcode if there is anything left to do. */
if( n>0 ){
- sqlite3VdbeAddOp2(v, OP_Affinity, base, n);
- sqlite3VdbeChangeP4(v, -1, zAff, n);
+ sqlite3VdbeAddOp4(v, OP_Affinity, base, n, 0, zAff, n);
sqlite3ExprCacheAffinityChange(pParse, base, n);
}
}