mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-20 14:19:18 +02:00
Under Unix with SEXP_64_BIT defined, sexp_sint_t is defined as 'long'. But we would get the equivalent format specifier SEXP_PRIdFIXNUM from the OS-defined PRId64 in <inttypes.h>. MacOS defines it as "lld". This causes the clang printf checker to emit a warning about the 'long' and 'long long' mismatch. Fix by avoiding system-defined PRId32 and PRId64 format specifiers and always defining SEXP_PRIdFIXNUM as "d", "ld" or "lld" according to our definition of sexp_sint_t as int, long or long long. This also means we don't need to include <inttypes.h> any more. |
||
---|---|---|
.. | ||
chibi |