diff options
Diffstat (limited to 'src/wasm/wasm-stack.cpp')
-rw-r--r-- | src/wasm/wasm-stack.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/wasm-stack.cpp b/src/wasm/wasm-stack.cpp index df9ad8620..3c162a9d5 100644 --- a/src/wasm/wasm-stack.cpp +++ b/src/wasm/wasm-stack.cpp @@ -23,7 +23,7 @@ void BinaryInstWriter::emitResultType(Type type) { if (type == Type::unreachable) { o << binaryType(Type::none); } else if (type.isMulti()) { - o << U32LEB(parent.getTypeIndex(Signature(Type::none, type))); + o << S32LEB(parent.getTypeIndex(Signature(Type::none, type))); } else { o << binaryType(type); } |