From 578461d1ad4fe34235f67016d703f568fdf92c6a Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 4 Nov 2015 21:03:47 -0800 Subject: numeric fixes --- src/wasm-interpreter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wasm-interpreter.h') 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()))); -- cgit v1.2.3