diff --git a/compiler/lex.c b/compiler/lex.c index ec7aebc..a7b8eeb 100644 --- a/compiler/lex.c +++ b/compiler/lex.c @@ -286,7 +286,7 @@ string_literal(LexState *ls) } token.id = T_STRING; - token.str = (Str){str_buf, i}; + token.str = Str_from_buf(str_buf, i); token.len = i; return token; err: