summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2015-08-04 14:33:03 -0700
committerJohn Wiegley <johnw@newartisans.com>2015-08-04 14:33:03 -0700
commita3e946f90f902600819f64217c8cd98c72bb21ba (patch)
treed7f0de1c234b457ce608c38d71040bca4cff43eb /src/value.cc
parent947a46ebebd141e928a9fcebb584e34df4e210a7 (diff)
parentfbba9adc16c515632a5009d2ec88c9fcab532676 (diff)
downloadledger-a3e946f90f902600819f64217c8cd98c72bb21ba.tar.gz
ledger-a3e946f90f902600819f64217c8cd98c72bb21ba.tar.bz2
ledger-a3e946f90f902600819f64217c8cd98c72bb21ba.zip
Merge remote-tracking branch 'origin/master' into next
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 2737add9..4ea7c7a8 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: