diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-06-09 11:44:14 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-06-09 11:44:14 +0200 |
commit | 6fbe50be1c3297680e2a9802923907638193e234 (patch) | |
tree | 589c3876d879d3720e5086897bccf1b9dc6015a1 /src | |
parent | cfaf2f58f51ca71818a3c322eb13532109f7020e (diff) |
Use CHAR_BIT
Diffstat (limited to 'src')
-rw-r--r-- | src/lexer.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 <assert.h> #include <errno.h> #include <inttypes.h> +#include <limits.h> #include <stdalign.h> #include <stdbool.h> #include <stddef.h> @@ -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 *); |