summaryrefslogtreecommitdiff
path: root/src/asm2wasm.h
diff options
context:
space:
mode:
authorJF Bastien <github@jfbastien.com>2016-02-02 15:37:10 +0100
committerJF Bastien <github@jfbastien.com>2016-02-02 15:37:10 +0100
commitb4ab45dca8698a1c65a85e6c767c42c3416cc1c5 (patch)
tree677b97ee53c3840b7a1d2d4790a208ae505cc577 /src/asm2wasm.h
parent4044cbd8fe593a118456079eaddfb393c84b9e76 (diff)
parentb20025479124b041c94f9bf6f8053eaa95e46c0c (diff)
downloadbinaryen-b4ab45dca8698a1c65a85e6c767c42c3416cc1c5.tar.gz
binaryen-b4ab45dca8698a1c65a85e6c767c42c3416cc1c5.tar.bz2
binaryen-b4ab45dca8698a1c65a85e6c767c42c3416cc1c5.zip
Merge pull request #166 from WebAssembly/explicit
Make Literal's ctors explicit
Diffstat (limited to 'src/asm2wasm.h')
-rw-r--r--src/asm2wasm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h
index d29c36a6e..473384f2e 100644
--- a/src/asm2wasm.h
+++ b/src/asm2wasm.h
@@ -1104,13 +1104,13 @@ Function* Asm2WasmBuilder::processFunction(Ref ast) {
auto isNegative = allocator.alloc<Binary>();
isNegative->op = LtS;
isNegative->left = get();
- isNegative->right = allocator.alloc<Const>()->set(0);
+ isNegative->right = allocator.alloc<Const>()->set(Literal(0));
isNegative->finalize();
auto block = allocator.alloc<Block>();
block->list.push_back(set);
auto flip = allocator.alloc<Binary>();
flip->op = Sub;
- flip->left = allocator.alloc<Const>()->set(0);
+ flip->left = allocator.alloc<Const>()->set(Literal(0));
flip->right = get();
flip->type = i32;
auto select = allocator.alloc<Select>();