summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm.h b/src/wasm.h
index 07cddfcdd..097ce1900 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -164,7 +164,7 @@ struct Literal {
double f64;
};
- Literal() : type(WasmType::none) {}
+ Literal() : type(WasmType::none), f64(0) {}
Literal(int32_t init) : type(WasmType::i32), i32(init) {}
Literal(int64_t init) : type(WasmType::i64), i64(init) {}
Literal(float init) : type(WasmType::f32), f32(init) {}