summaryrefslogtreecommitdiff
path: root/src/binary-reader-ir.cc
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2022-08-31 14:48:46 -0700
committerGitHub <noreply@github.com>2022-08-31 14:48:46 -0700
commit4741f38cf64b8b86a57a0ae9a117dc89fa6f2e24 (patch)
tree518a5a057afcd86176b020dd3b27bbd31c07e9b4 /src/binary-reader-ir.cc
parent0b83fe4b05f4c814ae5be3e1d03068918d9ecd7e (diff)
downloadwabt-4741f38cf64b8b86a57a0ae9a117dc89fa6f2e24.tar.gz
wabt-4741f38cf64b8b86a57a0ae9a117dc89fa6f2e24.tar.bz2
wabt-4741f38cf64b8b86a57a0ae9a117dc89fa6f2e24.zip
Fix incorrect index usage in BinaryReaderIR::OnTableSymbol (#1976)
Diffstat (limited to 'src/binary-reader-ir.cc')
-rw-r--r--src/binary-reader-ir.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binary-reader-ir.cc b/src/binary-reader-ir.cc
index 49feb255..340b938d 100644
--- a/src/binary-reader-ir.cc
+++ b/src/binary-reader-ir.cc
@@ -1670,7 +1670,7 @@ Result BinaryReaderIR::OnTableSymbol(Index index,
uint32_t flags,
std::string_view name,
Index table_index) {
- return SetTableName(index, name);
+ return SetTableName(table_index, name);
}
} // end anonymous namespace