This commit is contained in:
Harris Snyder 2024-03-19 01:10:47 -03:00 committed by GitHub
commit 342c8ceb11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -671,7 +671,7 @@ int stb_c_lexer_get_token(stb_lexer *lexer)
return stb__clex_token(lexer, CLEX_parse_error, start,start);
if (p == lexer->eof || *p != '\'')
return stb__clex_token(lexer, CLEX_parse_error, start,p);
return stb__clex_token(lexer, CLEX_charlit, start, p+1);
return stb__clex_token(lexer, CLEX_charlit, start, p);
})
goto single_char;