summaryrefslogtreecommitdiff
path: root/src/binary-reader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary-reader.cc')
-rw-r--r--src/binary-reader.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binary-reader.cc b/src/binary-reader.cc
index 86bb07bc..9a09560e 100644
--- a/src/binary-reader.cc
+++ b/src/binary-reader.cc
@@ -656,7 +656,7 @@ Result BinaryReader::ReadFunctionBody(Offset end_offset) {
case Opcode::BrTable: {
Index num_targets;
- CHECK_RESULT(ReadIndex(&num_targets, "br_table target count"));
+ CHECK_RESULT(ReadCount(&num_targets, "br_table target count"));
target_depths_.resize(num_targets);
for (Index i = 0; i < num_targets; ++i) {