diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-02 04:46:06 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:36 -0400 |
commit | f0508a9f86be63fc4f98e9943ce2f226339e6309 (patch) | |
tree | efe3bce9d361b64b1fc39ec450241f0e7dbb92c1 /src/amount.cc | |
parent | c676527270e2e5b23de0e4b99e85010c76eb72b0 (diff) | |
download | fork-ledger-f0508a9f86be63fc4f98e9943ce2f226339e6309.tar.gz fork-ledger-f0508a9f86be63fc4f98e9943ce2f226339e6309.tar.bz2 fork-ledger-f0508a9f86be63fc4f98e9943ce2f226339e6309.zip |
In the middle of revising commodities.
Diffstat (limited to 'src/amount.cc')
-rw-r--r-- | src/amount.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/amount.cc b/src/amount.cc index 348fda64..b1ef1c03 100644 --- a/src/amount.cc +++ b/src/amount.cc @@ -5,8 +5,9 @@ * * @brief Types for handling commoditized math. * - * This file defines member functions for amount_t and the various - * flavors of commodity_t. + * This file defines member functions for amount_t, and also defines a + * helper class, bigint_t, which is used as a refcounted wrapper + * around libgmp's mpz_t type. */ /* @@ -1142,8 +1143,8 @@ void amount_t::parse_conversion(const string& larger_str, { amount_t larger, smaller; - larger.parse(larger_str.c_str(), AMOUNT_PARSE_NO_REDUCE); - smaller.parse(smaller_str.c_str(), AMOUNT_PARSE_NO_REDUCE); + larger.parse(larger_str, AMOUNT_PARSE_NO_REDUCE); + smaller.parse(smaller_str, AMOUNT_PARSE_NO_REDUCE); larger *= smaller.number(); |