summaryrefslogtreecommitdiff
path: root/src/type-checker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/type-checker.cc')
-rw-r--r--src/type-checker.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/type-checker.cc b/src/type-checker.cc
index eb23446f..7282c5b2 100644
--- a/src/type-checker.cc
+++ b/src/type-checker.cc
@@ -491,7 +491,7 @@ Result TypeChecker::OnBrTableTarget(Index depth) {
if (br_table_sig_ == nullptr) {
br_table_sig_ = &label_sig;
} else {
- if (*br_table_sig_ != label_sig) {
+ if (br_table_sig_->size() != label_sig.size()) {
result |= Result::Error;
PrintError("br_table labels have inconsistent types: expected %s, got %s",
TypesToString(*br_table_sig_).c_str(),