> 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
 09:23:07 up 13:22,  2 users,  load average: 0.31, 0.23, 0.19
This commit is contained in:
tracer-ics2023
2024-08-18 09:23:08 +08:00
committed by zzy
parent 20229c81dc
commit 3b17846393

View File

@ -143,7 +143,7 @@ static bool make_token(char *e) {
int check_parentheses(const Token* arr, size_t p, size_t q) {
int cnt = 0;
bool is_surrounded = false;
Assert (p >= 0 && p < q && q < nr_token, "invalid range on check_parentheses, "\
Assert (p >= 0 && q < nr_token, "invalid range on check_parentheses, "\
"p = %"PRIuMAX", q = %"PRIuMAX"\n", p, q);
for (size_t i = p; i <= q; i ++) {
if (arr[i].type == '(') {