diff options
Diffstat (limited to 'src/preprocess.c')
| -rw-r--r-- | src/preprocess.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/preprocess.c b/src/preprocess.c index 318e7fc..788be1a 100644 --- a/src/preprocess.c +++ b/src/preprocess.c @@ -477,6 +477,10 @@ static void pplexer_tokenize_all(PpLexer* ppl) { strbuilder_append_char(&builder, infile_peek_char(ppl->src)); infile_next_char(ppl->src); } + // Skip integer suffix. + while (isalpha(infile_peek_char(ppl->src))) { + infile_next_char(ppl->src); + } tok->kind = TokenKind_literal_int; tok->value.integer = atoi(builder.buf); } else if (isalpha(c) || c == '_') { |
