summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/value.cc')
-rw-r--r--src/value.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/value.cc b/src/value.cc
index 87c7ecd1..c47a4f6e 100644
--- a/src/value.cc
+++ b/src/value.cc
@@ -120,21 +120,18 @@ value_t::operator bool() const
void value_t::set_type(type_t new_type)
{
- assert(new_type >= VOID && new_type <= POINTER);
if (new_type == VOID) {
#if BOOST_VERSION >= 103700
storage.reset();
#else
storage = intrusive_ptr<storage_t>();
#endif
- assert(is_null());
} else {
if (! storage || storage->refc > 1)
storage = new storage_t;
else
storage->destroy();
storage->type = new_type;
- assert(is_type(new_type));
}
}