aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-04-28 15:07:16 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-04-30 17:43:06 +0200
commitb06354707e33bbf24b04315a6909d257ad854007 (patch)
tree0fbafea6437350d78f7f937467f6f3d278516ea3
parentdf8a5fa4dc6b604e457fe5e8bac82974d752036b (diff)
downloadsparse-dev-b06354707e33bbf24b04315a6909d257ad854007.tar.gz
fix alignment of 64 bit integers on LLP64
On LLP64 platforms, ointers & long long are 8 bytes width *and* also aligned to 8 bytes. However, the alignment was set to only 4 bytes. Fix this by setting max_in_alignment to 8 for LLP64 too. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index a4791da8..b94ed847 100644
--- a/lib.c
+++ b/lib.c
@@ -455,7 +455,7 @@ static void handle_arch_m64_finalize(void)
goto case_64bit_common;
case ARCH_LLP64:
bits_in_long = 32;
- max_int_alignment = 4;
+ max_int_alignment = 8;
size_t_ctype = &ullong_ctype;
ssize_t_ctype = &llong_ctype;
add_pre_buffer("#weak_define __LLP64__ 1\n");