Skip to content

Commit

Permalink
Pushing boolean value to univalue correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
karelbilek authored and jnewbery committed Dec 19, 2017
1 parent 07947ff commit b3c44c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/univalue.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ class UniValue {
UniValue tmpVal(val_);
return pushKV(key, tmpVal);
}
bool pushKV(const std::string& key, bool val_) {
UniValue tmpVal((bool)val_);
return pushKV(key, tmpVal);
}
bool pushKV(const std::string& key, int val_) {
UniValue tmpVal((int64_t)val_);
return pushKV(key, tmpVal);
Expand Down

0 comments on commit b3c44c9

Please sign in to comment.