mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 13:25:45 +02:00
ntoa: fix type of mask
It really needs to be uint64_t, but at least it now doesn't contradict the definition in the earlier header. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
parent
ece58cc910
commit
6556566f54
@ -20,7 +20,7 @@ namespace crucible {
|
||||
#define NTOA_TABLE_ENTRY_BITS(x) { .n = (x), .mask = (x), .a = (#x) }
|
||||
|
||||
// Enumerations (entire value matches all bits)
|
||||
#define NTOA_TABLE_ENTRY_ENUM(x) { .n = (x), .mask = ~0UL, .a = (#x) }
|
||||
#define NTOA_TABLE_ENTRY_ENUM(x) { .n = (x), .mask = ~0ULL, .a = (#x) }
|
||||
|
||||
// End of table (sorry, C++ didn't get C99's compound literals, so we have to write out all the member names)
|
||||
#define NTOA_TABLE_ENTRY_END() { .n = 0, .mask = 0, .a = nullptr }
|
||||
|
Loading…
x
Reference in New Issue
Block a user