summaryrefslogtreecommitdiff
path: root/src/value.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/value.h')
-rw-r--r--src/value.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/value.h b/src/value.h
index e98d74cb..7b058065 100644
--- a/src/value.h
+++ b/src/value.h
@@ -622,10 +622,12 @@ public:
mask_t& as_mask_lval() {
assert(is_mask());
_dup();
+ VERIFY(boost::get<mask_t>(storage->data).valid());
return boost::get<mask_t>(storage->data);
}
const mask_t& as_mask() const {
assert(is_mask());
+ VERIFY(boost::get<mask_t>(storage->data).valid());
return boost::get<mask_t>(storage->data);
}
void set_mask(const string& val) {