From 09ace752d604d5afce698f7cc240e1a83cee934d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 5 Nov 2009 05:11:50 -0500 Subject: Added missing call to _dup() in value_t::in_place_cast --- src/value.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/value.cc') 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; -- cgit v1.2.3