summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
authortripun <tripun@gmail.com>2014-08-18 23:23:58 +0530
committertripun <tripun@gmail.com>2014-08-18 23:23:58 +0530
commitcb39ea25080a65ebc67d42d24f9de72c7b49bea2 (patch)
treef028cef8793921f98c2ef04d67136bf0ec4ee4b8 /src/value.cc
parent04d541ed44b189ccdd8ebfc78f4752903c737ca9 (diff)
downloadfork-ledger-cb39ea25080a65ebc67d42d24f9de72c7b49bea2.tar.gz
fork-ledger-cb39ea25080a65ebc67d42d24f9de72c7b49bea2.tar.bz2
fork-ledger-cb39ea25080a65ebc67d42d24f9de72c7b49bea2.zip
add case for addition to void
Diffstat (limited to 'src/value.cc')
-rw-r--r--src/value.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/value.cc b/src/value.cc
index 70a8ab43..2c62f4e1 100644
--- a/src/value.cc
+++ b/src/value.cc
@@ -341,6 +341,10 @@ value_t& value_t::operator+=(const value_t& val)
}
switch (type()) {
+ case VOID:
+ *this = value_t(val);
+ return *this;
+
case DATETIME:
switch (val.type()) {
case INTEGER: