> 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
 19:14:56 up 18:05,  1 user,  load average: 0.13, 0.13, 0.10
This commit is contained in:
tracer-ics2023
2024-08-31 19:14:56 +08:00
committed by zzy
parent 0dce74d7b9
commit 104c94945a

View File

@ -216,10 +216,7 @@ uint32_t eval(const Token* arr, int p, int q, bool* success) {
int type = arr[i].type;
int type_level = get_level(type);
if (type_level <= op_type_level) {
if (arr[op].type == TK_NEG && type == TK_NEG) {
continue;
}
if (type_level < op_type_level) {
op = i;
op_type_level = type_level;
}