diff options
Diffstat (limited to 'include/univalue.h')
-rw-r--r-- | include/univalue.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/univalue.h b/include/univalue.h index 6080516353..048e162f7d 100644 --- a/include/univalue.h +++ b/include/univalue.h @@ -100,6 +100,10 @@ public: UniValue tmpVal(val_); return push_back(tmpVal); } + bool push_back(bool val_) { + UniValue tmpVal(val_); + return push_back(tmpVal); + } bool push_back(int val_) { UniValue tmpVal(val_); return push_back(tmpVal); @@ -129,7 +133,7 @@ public: return pushKV(key, tmpVal); } bool pushKV(const std::string& key, bool val_) { - UniValue tmpVal((bool)val_); + UniValue tmpVal(val_); return pushKV(key, tmpVal); } bool pushKV(const std::string& key, int val_) { |