diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-05 05:11:50 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-05 05:11:50 -0500 |
commit | 09ace752d604d5afce698f7cc240e1a83cee934d (patch) | |
tree | 3357a0a2fd100f8dbf65e01ae1272770852c3e23 /src/value.cc | |
parent | deb674586cced63fc5b048d76eef477b4ae2f3c1 (diff) | |
download | fork-ledger-09ace752d604d5afce698f7cc240e1a83cee934d.tar.gz fork-ledger-09ace752d604d5afce698f7cc240e1a83cee934d.tar.bz2 fork-ledger-09ace752d604d5afce698f7cc240e1a83cee934d.zip |
Added missing call to _dup() in value_t::in_place_cast
Diffstat (limited to 'src/value.cc')
-rw-r--r-- | src/value.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/value.cc b/src/value.cc index a3a05b6c..4529300a 100644 --- a/src/value.cc +++ b/src/value.cc @@ -983,6 +983,8 @@ void value_t::in_place_cast(type_t cast_type) if (type() == cast_type) return; + _dup(); + if (cast_type == BOOLEAN) { set_boolean(bool(*this)); return; |