aboutsummaryrefslogtreecommitdiff
path: root/src/univalue/univalue.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/univalue/univalue.h')
-rw-r--r--src/univalue/univalue.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/univalue/univalue.h b/src/univalue/univalue.h
index 28d6e3d3cd..efcf202bdd 100644
--- a/src/univalue/univalue.h
+++ b/src/univalue/univalue.h
@@ -17,7 +17,7 @@
class UniValue {
public:
- enum VType { VNULL, VOBJ, VARR, VSTR, VNUM, VBOOL, };
+ enum VType { VNULL, VOBJ, VARR, VSTR, VNUM, VREAL, VBOOL, };
UniValue() { typ = VNULL; }
UniValue(UniValue::VType initialType, const std::string& initialStr = "") {
@@ -76,6 +76,7 @@ public:
bool isBool() const { return (typ == VBOOL); }
bool isStr() const { return (typ == VSTR); }
bool isNum() const { return (typ == VNUM); }
+ bool isReal() const { return (typ == VREAL); }
bool isArray() const { return (typ == VARR); }
bool isObject() const { return (typ == VOBJ); }