diff options
author | John Wiegley <johnw@newartisans.com> | 2009-03-04 04:29:10 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-03-04 04:29:10 -0400 |
commit | 2d63c9364af57c732003afc7adddeb8ce62a1988 (patch) | |
tree | 8b5ac531fdebe6e25c77b6fefc41b3d0bfec58a9 /src/value.cc | |
parent | dcac3064670e6b4f4b8759d9adf54e8569ec4786 (diff) | |
download | fork-ledger-2d63c9364af57c732003afc7adddeb8ce62a1988.tar.gz fork-ledger-2d63c9364af57c732003afc7adddeb8ce62a1988.tar.bz2 fork-ledger-2d63c9364af57c732003afc7adddeb8ce62a1988.zip |
Changed many assert() calls to VERIFY()
Diffstat (limited to 'src/value.cc')
-rw-r--r-- | src/value.cc | 3 |
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)); } } |