Skip to content

Commit 6f6485f

Browse files
committed
fix aarch64-linux malloc
Change-Id: Ieb0ebae8376b0e45ebce88215e0cf5436a6a6964
1 parent 0975ef7 commit 6f6485f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/scanner.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,8 @@ static uint32_t column(Env *env) {
648648
*/
649649
static void advance(Env *env) {
650650
if (not_eof(env)) {
651-
array_push(&env->state->lookahead, PEEK);
651+
int32_t c = PEEK;
652+
array_push(&env->state->lookahead, c);
652653
env->lexer->advance(env->lexer, false);
653654
}
654655
}

0 commit comments

Comments
 (0)