From af60de0d62502dbbf85da53eed3cce79155674b7 Mon Sep 17 00:00:00 2001 From: tocariimaa Date: Mon, 13 Jan 2025 14:52:14 -0300 Subject: [PATCH] lexer: use `Str_from_buf` here 2 --- compiler/lex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/lex.c b/compiler/lex.c index a7b8eeb..0c18e4b 100644 --- a/compiler/lex.c +++ b/compiler/lex.c @@ -248,7 +248,7 @@ identifier(LexState *ls) backup(ls, 1); token.id = T_IDENT; - token.ident = (Str){intern_identifier(ls, ident_buf), i}; + token.ident = Str_from_buf(intern_identifier(ls, ident_buf), i); token.len = i; return token; }