summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-05 05:11:50 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-05 05:11:50 -0500
commit09ace752d604d5afce698f7cc240e1a83cee934d (patch)
tree3357a0a2fd100f8dbf65e01ae1272770852c3e23 /src/value.cc
parentdeb674586cced63fc5b048d76eef477b4ae2f3c1 (diff)
downloadfork-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.cc2
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;