diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-19 23:26:02 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-19 23:26:02 -0400 |
| commit | c19ec4c443af0648c827e771df634394a7ca7f07 (patch) | |
| tree | 5936cfe8c64e081621d258f562d02a8e8b32cd4f /src/stdlib/integers.c | |
| parent | e552fc2afcf525d0fd7a3ffe137cc28a43f224a2 (diff) | |
Some pedantic fixes vetted against compiling on mac.
Diffstat (limited to 'src/stdlib/integers.c')
| -rw-r--r-- | src/stdlib/integers.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { \ |
