summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
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 908de161..88b8949e 100644
--- a/src/value.cc
+++ b/src/value.cc
@@ -1371,6 +1371,7 @@ value_t value_t::strip_annotations(const bool keep_price,
const bool keep_tag) const
{
switch (type()) {
+ case VOID:
case BOOLEAN:
case INTEGER:
case DATETIME:
@@ -1551,6 +1552,9 @@ void value_t::print(std::ostream& out, const int first_width,
std::ostream& operator<<(std::ostream& out, const value_t& val)
{
switch (val.type()) {
+ case value_t::VOID:
+ out << "VOID";
+ break;
case value_t::BOOLEAN:
out << (val.as_boolean() ? "true" : "false");
break;