From 6fbe50be1c3297680e2a9802923907638193e234 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 9 Jun 2024 11:44:14 +0200 Subject: Use CHAR_BIT --- src/lexer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lexer.c b/src/lexer.c index 5196c64..6aa59c5 100644 --- a/src/lexer.c +++ b/src/lexer.c @@ -1,6 +1,7 @@ #include #include #include +#include #include #include #include @@ -19,7 +20,8 @@ # define unlikely(x) (x) #endif -#define SIZE_WDTH (sizeof(size_t) * 8) +#define LEXEMES_DFLT_CAP (2048) +#define SIZE_WDTH (sizeof(size_t) * CHAR_BIT) static bool skip_comment(const uchar **, const uchar *); -- cgit v1.2.3