summaryrefslogtreecommitdiff
path: root/value.cc
diff options
context:
space:
mode:
Diffstat (limited to 'value.cc')
-rw-r--r--value.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/value.cc b/value.cc
index 2569c237..ea52af1f 100644
--- a/value.cc
+++ b/value.cc
@@ -835,6 +835,9 @@ value_t& value_t::operator/=(const value_t& val)
bool value_t::operator==(const value_t& val) const
{
switch (type()) {
+ case VOID:
+ return val.type() == VOID;
+
case BOOLEAN:
if (val.is_boolean())
return as_boolean() == val.as_boolean();