From 6556566f548a3448bf180a97af1a0d93a02145e0 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Sun, 4 Dec 2022 00:09:19 -0500 Subject: [PATCH] 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 --- include/crucible/ntoa.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/crucible/ntoa.h b/include/crucible/ntoa.h index de614f4..e1aca7e 100644 --- a/include/crucible/ntoa.h +++ b/include/crucible/ntoa.h @@ -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 }