> 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
 20:14:45 up 19:04,  1 user,  load average: 0.64, 0.29, 0.16
This commit is contained in:
tracer-ics2023
2024-08-31 20:14:46 +08:00
committed by zzy
parent 478b7488b3
commit 9d65d96322

View File

@ -216,7 +216,10 @@ 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 (type_level <= op_type_level) {
if (type == TK_NEG && type_level == op_type_level) {
continue;
}
op = i;
op_type_level = type_level;
}