From 8c1623193835738341c06a4761a22d79f1d202b9 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 13 Apr 2008 05:09:13 -0400 Subject: Added missing casts to amount_t. --- value.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/value.cc b/value.cc index dba1798b..641beb49 100644 --- a/value.cc +++ b/value.cc @@ -890,10 +890,10 @@ void value_t::cast(type_t cast_type) new((amount_t *)data) amount_t(*((long *) data)); break; case BALANCE: - new((balance_t *)data) balance_t(*((long *) data)); + new((balance_t *)data) balance_t(amount_t(*((long *) data))); break; case BALANCE_PAIR: - new((balance_pair_t *)data) balance_pair_t(*((long *) data)); + new((balance_pair_t *)data) balance_pair_t(amount_t(*((long *) data))); break; default: -- cgit v1.2.3