summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-05 14:27:58 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-05 14:27:58 -0500
commit67ce33430c1f37f0fa7da62e5bd055c5a00b614d (patch)
tree3357a0a2fd100f8dbf65e01ae1272770852c3e23 /src/value.cc
parent15555d497f56e4b4d39e9a14f74b2c82cce52b90 (diff)
parent09ace752d604d5afce698f7cc240e1a83cee934d (diff)
downloadledger-67ce33430c1f37f0fa7da62e5bd055c5a00b614d.tar.gz
ledger-67ce33430c1f37f0fa7da62e5bd055c5a00b614d.tar.bz2
ledger-67ce33430c1f37f0fa7da62e5bd055c5a00b614d.zip
Merge branch 'next'
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;