diff --git a/nemu/tests/expr_test.c b/nemu/tests/expr_test.c index 6d26327..430645c 100644 --- a/nemu/tests/expr_test.c +++ b/nemu/tests/expr_test.c @@ -25,7 +25,7 @@ static char *code_format = void gen(char c) { *(buf_ptr++) = c; - *(ref_buf_ptr) = c; + *(ref_buf_ptr++) = c; } void gen_num(void) {