diff options
Diffstat (limited to 'src/wasm-builder.h')
-rw-r--r-- | src/wasm-builder.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h index a2f098a54..6433c1b57 100644 --- a/src/wasm-builder.h +++ b/src/wasm-builder.h @@ -486,7 +486,7 @@ public: return ret; } Const* makeConstPtr(uint64_t val) { - return makeConst(Literal::makeFromUInt64(val, wasm.memory.indexType)); + return makeConst(Literal::makeFromInt64(val, wasm.memory.indexType)); } Binary* makeBinary(BinaryOp op, Expression* left, Expression* right) { auto* ret = wasm.allocator.alloc<Binary>(); |