summaryrefslogtreecommitdiff
path: root/src/binary-reader-opcnt.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary-reader-opcnt.cc')
-rw-r--r--src/binary-reader-opcnt.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/binary-reader-opcnt.cc b/src/binary-reader-opcnt.cc
index 0bdfe431..3908660d 100644
--- a/src/binary-reader-opcnt.cc
+++ b/src/binary-reader-opcnt.cc
@@ -120,10 +120,10 @@ void OpcodeInfo::Write(Stream& stream) {
case Kind::BlockSig: {
auto type = *GetData<Type>();
- if (IsTypeIndex(type)) {
- stream.Writef(" type:%d", static_cast<int>(type));
+ if (type.IsIndex()) {
+ stream.Writef(" type:%d", type.GetIndex());
} else if (type != Type::Void) {
- stream.Writef(" %s", GetTypeName(type));
+ stream.Writef(" %s", type.GetName());
}
break;
}