From cb39ea25080a65ebc67d42d24f9de72c7b49bea2 Mon Sep 17 00:00:00 2001 From: tripun Date: Mon, 18 Aug 2014 23:23:58 +0530 Subject: add case for addition to void --- src/value.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/value.cc') 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: -- cgit v1.2.3