Closed vbar closed 2 years ago
7FU in
7FU
#define INT64_FROM_BUF(buf)\ ((((uint64_t)((buf)[0]&7FU) << 56) +\
making the macro unusable:
int64_t state_value = INT64_FROM_BUF(seq_buffer);
does not compile
but produces an error:
Invalid digit 'F' in decimal constant clang(invalid_digit)
The constant should be spelled 0x7FU.
0x7FU
https://github.com/XRPL-Labs/xrpld-hooks/commit/d3f6c4ef2d23d4eac9b32d188fa6ea8767b9a66c
Issue Description
7FU
inSteps to Reproduce
making the macro unusable:
Expected Result
does not compile
Actual Result
but produces an error:
The constant should be spelled
0x7FU
.