aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <>2023-10-31 17:40:30 +0000
committerdrh <>2023-10-31 17:40:30 +0000
commit5ba99da869063bed1c5ae3a18acbfe546d5998e4 (patch)
treed7efff3de4c0cdba5fe763825652071cbc8d30f7 /src/expr.c
parentddd1c97500a1292faec06b836890046a330f627b (diff)
downloadsqlite-5ba99da869063bed1c5ae3a18acbfe546d5998e4.tar.gz
sqlite-5ba99da869063bed1c5ae3a18acbfe546d5998e4.zip
Fix harmless compiler warnings in test code.
FossilOrigin-Name: d1895dd8f5757a339f619f22b29c8a739398ded673bb9c93f1b8eb8a4b38f510
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c
index e071c9690..0a975ae2e 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -1638,7 +1638,8 @@ static Expr *exprDup(
memcpy(sEdupBuf.zAlloc, p, nNewSize);
}else{
u32 nSize = (u32)exprStructSize(p);
- assert( (int)(sEdupBuf.zEnd - sEdupBuf.zAlloc) >= EXPR_FULLSIZE+nToken );
+ assert( (int)(sEdupBuf.zEnd - sEdupBuf.zAlloc) >=
+ (int)EXPR_FULLSIZE+nToken );
memcpy(sEdupBuf.zAlloc, p, nSize);
if( nSize<EXPR_FULLSIZE ){
memset(&sEdupBuf.zAlloc[nSize], 0, EXPR_FULLSIZE-nSize);