From 1782a5b692038e67f26290a799ebc2d3b1dc242c Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Mon, 30 Apr 2018 23:50:51 +0200 Subject: Fix wrong initialization boolean and numerical case initialized the same way. Change-Id: I274b5d898761c12f555ea59a178e363efe18f81d Signed-off-by: Romain Forlot --- signal-composer-binding/signal.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/signal-composer-binding/signal.hpp b/signal-composer-binding/signal.hpp index ddae87d..2b4a461 100644 --- a/signal-composer-binding/signal.hpp +++ b/signal-composer-binding/signal.hpp @@ -46,8 +46,8 @@ struct signalValue { undefined(true), hasBool(false), boolVal(false), hasNum(false), numVal(0), hasStr(false), strVal("") {}; signalValue(bool b): undefined(false), hasBool(true), boolVal(b), hasNum(false), numVal(0), hasStr(false), strVal("") {}; - signalValue(int b): - undefined(false), hasBool(true), boolVal(b), hasNum(false), numVal(0), hasStr(false), strVal("") {}; + signalValue(int i): + undefined(false), hasBool(false), boolVal(false), hasNum(true), numVal(i), hasStr(false), strVal("") {}; signalValue(double d): undefined(false), hasBool(false), boolVal(false), hasNum(true), numVal(d), hasStr(false), strVal("") {}; signalValue(const std::string& s): -- cgit 1.2.3-korg