~ chicken-core (chicken-5) 9ceef43e9013f718170d7be5006024e791434eb9
commit 9ceef43e9013f718170d7be5006024e791434eb9
Author: Peter Bex <peter@more-magic.net>
AuthorDate: Sun Jun 4 12:59:03 2017 +0200
Commit: Peter Bex <peter@more-magic.net>
CommitDate: Sun Jun 4 12:59:03 2017 +0200
Fix formatting and alignment hole constants on 64 bit LLP platforms
This cleans up the last runtime.c compilation warnings on 64-bit
versions of Windows
diff --git a/runtime.c b/runtime.c
index 50f62599..9b87716f 100644
--- a/runtime.c
+++ b/runtime.c
@@ -193,10 +193,16 @@ static C_TLS int timezone;
/* Constants: */
#ifdef C_SIXTY_FOUR
-# define ALIGNMENT_HOLE_MARKER ((C_word)0xfffffffffffffffeL)
# define FORWARDING_BIT_SHIFT 63
-# define UWORD_FORMAT_STRING "0x%016lx"
-# define UWORD_COUNT_FORMAT_STRING "%lu"
+# ifdef LLP
+# define ALIGNMENT_HOLE_MARKER ((C_word)0xfffffffffffffffeLL)
+# define UWORD_FORMAT_STRING "0x%016llx"
+# define UWORD_COUNT_FORMAT_STRING "%llu"
+# else
+# define ALIGNMENT_HOLE_MARKER ((C_word)0xfffffffffffffffeL)
+# define UWORD_FORMAT_STRING "0x%016lx"
+# define UWORD_COUNT_FORMAT_STRING "%lu"
+# endif
#else
# define ALIGNMENT_HOLE_MARKER ((C_word)0xfffffffe)
# define FORWARDING_BIT_SHIFT 31
Trap