1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Fix alignment problems on Linux with -m32 and on Mac PPC.

FossilOrigin-Name: 8a91aeca60548d5cd19add128cf65b9c3815c9103b1ef8ff6bc02711b6d709de
This commit is contained in:
drh
2025-03-15 18:26:27 +00:00
parent 8c0e922721
commit 7bd72d4abf
4 changed files with 12 additions and 11 deletions

View File

@ -143,7 +143,8 @@ struct VdbeCursor {
** or less. The value of SZ_VDBECURSOR(n) is guaranteed to be a multiple
** of 8.
*/
#define SZ_VDBECURSOR(N) (offsetof(VdbeCursor,aType) + ((N)+1)*sizeof(u64))
#define SZ_VDBECURSOR(N) \
(ROUND8(offsetof(VdbeCursor,aType)) + ((N)+1)*sizeof(u64))
/* Return true if P is a null-only cursor
*/

View File

@ -507,7 +507,7 @@ struct WhereInfo {
/*
** The size (in bytes) of a WhereInfo object that holds N WhereLevels.
*/
#define SZ_WHEREINFO(N) (offsetof(WhereInfo,a)+(N)*sizeof(WhereLevel))
#define SZ_WHEREINFO(N) ROUND8(offsetof(WhereInfo,a)+(N)*sizeof(WhereLevel))
/*
** Private interfaces - callable only by other where.c routines.