diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-04 21:03:47 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-04 21:03:47 -0800 |
commit | 578461d1ad4fe34235f67016d703f568fdf92c6a (patch) | |
tree | a236b62b611713ca408ff1ca0cf3f20eabbd5e45 /src/wasm-interpreter.h | |
parent | 8bc2c03d245df4eab03f6545d55a9f2d34c261a3 (diff) | |
download | binaryen-578461d1ad4fe34235f67016d703f568fdf92c6a.tar.gz binaryen-578461d1ad4fe34235f67016d703f568fdf92c6a.tar.bz2 binaryen-578461d1ad4fe34235f67016d703f568fdf92c6a.zip |
numeric fixes
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r-- | src/wasm-interpreter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h index f412e2afb..7af64e336 100644 --- a/src/wasm-interpreter.h +++ b/src/wasm-interpreter.h @@ -354,7 +354,7 @@ public: Literal value = flow.value; switch (curr->op) { // :-) case ExtendSInt32: return Flow(Literal(int64_t(value.geti32()))); - case ExtendUInt32: return Flow(Literal(int64_t((uint32_t)value.geti32()))); + case ExtendUInt32: return Flow(Literal(uint64_t((uint32_t)value.geti32()))); case WrapInt64: return Flow(Literal(int32_t(value.geti64()))); case TruncSFloat32: return Flow(Literal(int32_t(value.getf32()))); case TruncUFloat32: return Flow(Literal(uint32_t(value.getf32()))); |