From e550798804bbab8e0ad0fe836c6a6aa2e4064059 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 14 Aug 2023 23:18:11 +0900 Subject: [PATCH] examples/app: fix a copy-and-paste botch --- examples/app/app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/app/app.c b/examples/app/app.c index 0421c906..7c0e8f3a 100644 --- a/examples/app/app.c +++ b/examples/app/app.c @@ -78,7 +78,7 @@ main(int argc, char **argv) if (funcidx_with_largest_jump_table == UINT32_MAX || ei->njumps > largest_jump_table) { funcidx_with_largest_jump_table = i; - largest_jump_table = lt->nlocals; + largest_jump_table = ei->njumps; } #if defined(TOYWASM_USE_SMALL_CELLS) if (funcidx_with_largest_type_annotations == UINT32_MAX ||