diff options
author | John Wiegley <johnw@newartisans.com> | 2008-04-13 05:09:13 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 05:09:13 -0400 |
commit | 8c1623193835738341c06a4761a22d79f1d202b9 (patch) | |
tree | 2389e954fd0095407bd390916009d7c2ecdfa705 | |
parent | e3aacac7f0e01b74039c9c990ffc7a36e98f29ed (diff) | |
download | fork-ledger-8c1623193835738341c06a4761a22d79f1d202b9.tar.gz fork-ledger-8c1623193835738341c06a4761a22d79f1d202b9.tar.bz2 fork-ledger-8c1623193835738341c06a4761a22d79f1d202b9.zip |
Added missing casts to amount_t.
-rw-r--r-- | value.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |