> compile NEMU

ysyx_22040000 李心杨
Linux calcite 6.6.19 #1-NixOS SMP PREEMPT_DYNAMIC Fri Mar  1 12:35:11 UTC 2024 x86_64 GNU/Linux
 14:48:51  up   1:54,  2 users,  load average: 0.39, 0.57, 0.71
This commit is contained in:
tracer-ysyx 2024-03-20 14:48:51 +08:00 committed by xinyangli
parent fd7c8c2700
commit d62e53e8ad

View file

@ -60,7 +60,7 @@ void init_elf(const char *path) {
if(func_table_len >= func_table_size) { if(func_table_len >= func_table_size) {
Assert(func_table_size * 2 > func_table_size, "Function table exceed memory limit"); Assert(func_table_size * 2 > func_table_size, "Function table exceed memory limit");
func_table_size *= 2; func_table_size *= 2;
func_table = realloc(func_table, func_table_size); func_table = realloc(func_table, func_table_size * sizeof(func_t));
Assert(func_table, "Function table exceed memory limit"); Assert(func_table, "Function table exceed memory limit");
} }
} }