summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-04-13 05:09:13 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 05:09:13 -0400
commit8c1623193835738341c06a4761a22d79f1d202b9 (patch)
tree2389e954fd0095407bd390916009d7c2ecdfa705
parente3aacac7f0e01b74039c9c990ffc7a36e98f29ed (diff)
downloadfork-ledger-8c1623193835738341c06a4761a22d79f1d202b9.tar.gz
fork-ledger-8c1623193835738341c06a4761a22d79f1d202b9.tar.bz2
fork-ledger-8c1623193835738341c06a4761a22d79f1d202b9.zip
Added missing casts to amount_t.
-rw-r--r--value.cc4
1 files 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: