From abc6a16294fe103457f0bab5fdc203296858c1b0 Mon Sep 17 00:00:00 2001 From: tocariimaa Date: Sun, 19 Jan 2025 19:12:45 -0300 Subject: [PATCH] use macro constant here --- compiler/lex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/lex.c b/compiler/lex.c index 0c18e4b..aa0bc5b 100644 --- a/compiler/lex.c +++ b/compiler/lex.c @@ -15,7 +15,7 @@ #define STRING_LITERAL_BASE_SIZE 255 #define STRING_LITERAL_MAX_SIZE 4096 -#define at_buffer_end(ls) (*(ls)->fwd == '\0') +#define at_buffer_end(ls) (*(ls)->fwd == LEX_BUFFER_SENTINEL) #define ascii_isident(c) (c == '_' || c == '?' || c == '!' || ascii_isalnum(c)) #define ascii_isident_start(c) (c == '_' || ascii_isalpha(c))