Berry fix warning in be_lexer (#19892)

This commit is contained in:
s-hadinger 2023-10-31 22:11:18 +01:00 committed by GitHub
parent d148cc21f6
commit 0cd1ae965c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -271,9 +271,7 @@ static void skip_comment(blexer *lexer)
c = next(lexer);
} while (!(mark && c == '#') && c != EOS);
if (c == EOS) {
char tmp[64];
sprintf(tmp, "unterminated comment block started in line %d", lno);
be_lexerror(lexer, tmp);
be_lexerror(lexer, be_pushfstring(lexer->vm, "unterminated comment block started in line %d", lno));
}
next(lexer); /* skip '#' */
} else { /* line comment */