summaryrefslogtreecommitdiff
path: root/src/binary-reader-interpreter.cc
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2017-04-26 13:32:41 -0700
committerGitHub <noreply@github.com>2017-04-26 13:32:41 -0700
commit8e1f6031e9889ba770c7be4a9b084da5f14456a0 (patch)
treef11e372171ccd476b6968cbc7460ceb430428f27 /src/binary-reader-interpreter.cc
parent5a0feb1d21a9448b53ad31440af666f13705858d (diff)
downloadwabt-8e1f6031e9889ba770c7be4a9b084da5f14456a0.tar.gz
wabt-8e1f6031e9889ba770c7be4a9b084da5f14456a0.tar.bz2
wabt-8e1f6031e9889ba770c7be4a9b084da5f14456a0.zip
Update the testsuite (#410)
This exposed a small bug where an empty init expr would have type 0, which would print as "(null)" since it didn't exist.
Diffstat (limited to 'src/binary-reader-interpreter.cc')
-rw-r--r--src/binary-reader-interpreter.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/binary-reader-interpreter.cc b/src/binary-reader-interpreter.cc
index fcb6fede..d4153edd 100644
--- a/src/binary-reader-interpreter.cc
+++ b/src/binary-reader-interpreter.cc
@@ -900,6 +900,7 @@ Result BinaryReaderInterpreter::BeginGlobal(uint32_t index,
InterpreterGlobal* global = GetGlobalByModuleIndex(index);
global->typed_value.type = type;
global->mutable_ = mutable_;
+ init_expr_value.type = Type::Void;
return Result::Ok;
}