summaryrefslogtreecommitdiff
path: root/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'lex.c')
-rw-r--r--lex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lex.c b/lex.c
index a642ea0..c899fd7 100644
--- a/lex.c
+++ b/lex.c
@@ -151,7 +151,7 @@ static int lex_char(struct token *t) {
} else {
t->type = TOKEN_NUMERIC;
t->span = 3; /* len 'x' == 3 */
- t->i_val = buffer[column];
+ t->i_val = buffer[column++];
}
if (expect('\''))
return 1;