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:
@ -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
|
||||
*/
|
||||
|
@ -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.
|
||||
|
Reference in New Issue
Block a user