Skip to content

Commit

Permalink
print: fix VALUE_RS type confusion
Browse files Browse the repository at this point in the history
0 is int, not short. But C doesn't know numeric literals shorter than int,
so the new Apple M1 clang is overly strict.

Fixes GH #951, -Werror,-Wformat on the M1
  • Loading branch information
rurban committed Mar 10, 2024
1 parent 56612b2 commit a969a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/print.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ static BITCODE_BL rcount1, rcount2;
#define VALUE(value, type, dxf) \
LOG_TRACE (FORMAT_##type " [" #type " " #dxf "]\n", value)
#define VALUE_RC(value, dxf) VALUE (value, RC, dxf)
#define VALUE_RS(value, dxf) VALUE (value, RS, dxf)
#define VALUE_RS(value, dxf) VALUE ((BITCODE_RS)value, RS, dxf)
#define VALUE_RL(value, dxf) VALUE (value, RL, dxf)
#define VALUE_RLx(value, dxf) \
LOG_TRACE (FORMAT_RLx " [RL " #dxf "]\n", (BITCODE_RL)value)
Expand Down

0 comments on commit a969a6a

Please sign in to comment.