summaryrefslogtreecommitdiff
path: root/src/wasm-interpreter.h
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2016-03-28 15:12:17 +0300
committerJukka Jylänki <jujjyl@gmail.com>2016-03-28 21:40:16 +0300
commit85f814e17f7d4e8d665fee4281831c8f4576e40f (patch)
tree8cab09ae7f733eadb4c6ea6bff4f622c4f80f226 /src/wasm-interpreter.h
parent77b998fc2711a1f46e699d581c50a6cf9d50c7c2 (diff)
downloadbinaryen-85f814e17f7d4e8d665fee4281831c8f4576e40f.tar.gz
binaryen-85f814e17f7d4e8d665fee4281831c8f4576e40f.tar.bz2
binaryen-85f814e17f7d4e8d665fee4281831c8f4576e40f.zip
Fix function trapIfGt() to operate on 64-bit integers even when building a 32-bit executable.
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r--src/wasm-interpreter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h
index 9aadccb59..00a3db0c6 100644
--- a/src/wasm-interpreter.h
+++ b/src/wasm-interpreter.h
@@ -695,7 +695,7 @@ private:
template <class LS>
size_t getFinalAddress(LS* curr, Literal ptr) {
- auto trapIfGt = [this](size_t lhs, size_t rhs, const char* msg) {
+ auto trapIfGt = [this](uint64_t lhs, uint64_t rhs, const char* msg) {
if (lhs > rhs) {
std::stringstream ss;
ss << msg << ": " << lhs << " > " << rhs;