> 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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user