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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user