> 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:12 up 18:04,  1 user,  load average: 0.25, 0.15, 0.11
This commit is contained in:
tracer-ics2023
2024-08-31 19:14:13 +08:00
committed by zzy
parent 9a0bc41044
commit 0828962a07

View File

@ -217,6 +217,9 @@ 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;
}
op = i;
op_type_level = type_level;
}