From c19ec4c443af0648c827e771df634394a7ca7f07 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 19 Aug 2025 23:26:02 -0400 Subject: Some pedantic fixes vetted against compiling on mac. --- src/stdlib/integers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stdlib/integers.c') diff --git a/src/stdlib/integers.c b/src/stdlib/integers.c index 037aba0f..64d1d847 100644 --- a/src/stdlib/integers.c +++ b/src/stdlib/integers.c @@ -665,7 +665,7 @@ public void Int32$deserialize(FILE *in, void *outval, List_t *pointers, const Ty if (Int$compare_value(bit_index, I(1)) < 0) \ fail("Invalid bit index (expected 1 or higher): ", bit_index); \ if (Int$compare_value(bit_index, Int$from_int64(sizeof(c_type)*8)) > 0) \ - fail("Bit index is too large! There are only ", sizeof(c_type)*8, " bits, but index is: ", bit_index); \ + fail("Bit index is too large! There are only ", (uint64_t)sizeof(c_type)*8, " bits, but index is: ", bit_index); \ return ((x & (c_type)(1L << (Int64$from_int(bit_index, true)-1L))) != 0); \ } \ typedef struct { \ -- cgit v1.2.3