1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-10 01:02:56 +03:00

Fix sqlite3ExprDup() alignment assertions so that they work on 32-bit

platforms.

FossilOrigin-Name: 143f95efc7114455b1920f1d2f9a867392740f608d1dda4306005f01238103f8
This commit is contained in:
drh
2023-10-23 12:16:27 +00:00
parent f49d52d642
commit bd8941a4f8
3 changed files with 9 additions and 9 deletions

View File

@@ -1601,10 +1601,10 @@ static Expr *exprDup(
nAlloc = dupedExprSize(p);
}else if( !ExprHasProperty(p, EP_IntValue) && p->u.zToken ){
nToken = sqlite3Strlen30NN(p->u.zToken)+1;
nAlloc = EXPR_FULLSIZE + ROUND8(nToken);
nAlloc = ROUND8(EXPR_FULLSIZE + nToken);
}else{
nToken = 0;
nAlloc = EXPR_FULLSIZE;
nAlloc = ROUND8(EXPR_FULLSIZE);
}
assert( nAlloc==ROUND8(nAlloc) );
sEdupBuf.zAlloc = sqlite3DbMallocRawNN(db, nAlloc);