> compile NEMU

221220000 张三
Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 17:10:02 up 19:35,  2 users,  load average: 0.61, 0.33, 0.22
This commit is contained in:
tracer-ics2023
2024-08-18 17:10:03 +08:00
committed by zzy
parent 500feb5d27
commit acb975681d

View File

@ -174,7 +174,8 @@ int test_expr() {
uint32_t expect, res;
char buf[65536] = {0};
if (scanf("%"PRIu32" %s", &expect, buf));
res = expr(buf, NULL);
bool success = false;
res = expr(buf, &success);
if (res == expect) {
printf("True :");
} else {