diff options
Diffstat (limited to 'src/wasm/wasm-binary.cpp')
-rw-r--r-- | src/wasm/wasm-binary.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp index 2eb8bdcde..1dac17e93 100644 --- a/src/wasm/wasm-binary.cpp +++ b/src/wasm/wasm-binary.cpp @@ -1648,11 +1648,11 @@ Type WasmBinaryBuilder::getType(int initial) { return Type(getHeapType(), Nullable); case BinaryConsts::EncodedType::rtt_n: { auto depth = getU32LEB(); - auto heapType = getHeapType(); + auto heapType = getIndexedHeapType(); return Type(Rtt(depth, heapType)); } case BinaryConsts::EncodedType::rtt: { - return Type(Rtt(getHeapType())); + return Type(Rtt(getIndexedHeapType())); } default: throwError("invalid wasm type: " + std::to_string(initial)); |