summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
authorJF Bastien <github@jfbastien.com>2016-02-02 14:59:58 +0100
committerJF Bastien <github@jfbastien.com>2016-02-02 14:59:58 +0100
commit4044cbd8fe593a118456079eaddfb393c84b9e76 (patch)
tree43f4dde36c9db6dbf3a36cb4a178a6091cce8b8d /src/wasm.h
parent9a0faea4e061d0ce6686914543204e05cc7b93c3 (diff)
parentc0c40ceaf1c5e2c4fc966b36ec04592e6c67979f (diff)
downloadbinaryen-4044cbd8fe593a118456079eaddfb393c84b9e76.tar.gz
binaryen-4044cbd8fe593a118456079eaddfb393c84b9e76.tar.bz2
binaryen-4044cbd8fe593a118456079eaddfb393c84b9e76.zip
Merge pull request #165 from WebAssembly/entry-params
Shell: fix --entry parameter numbers
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wasm.h b/src/wasm.h
index beb2d340d..a5c163719 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -149,7 +149,8 @@ struct Literal {
double f64;
};
- Literal() : type(WasmType::none), f64(0) {}
+ Literal() : Literal(WasmType::none) {}
+ explicit Literal(WasmType type) : type(type) { memset(&f64, 0, sizeof(f64)); }
Literal(int32_t init) : type(WasmType::i32), i32(init) {}
Literal(uint32_t init) : type(WasmType::i32), i32(init) {}
Literal(int64_t init) : type(WasmType::i64), i64(init) {}