diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-21 03:54:27 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-21 03:54:27 -0400 |
commit | b03041698277591677f303afd4c0d715ea844ba8 (patch) | |
tree | 0a9be7f6d3898b202ba804e37defe7c2cb6fb1ac /binary.cc | |
parent | 9350433499396d804c1343bc772894a248434a47 (diff) | |
download | fork-ledger-b03041698277591677f303afd4c0d715ea844ba8.tar.gz fork-ledger-b03041698277591677f303afd4c0d715ea844ba8.tar.bz2 fork-ledger-b03041698277591677f303afd4c0d715ea844ba8.zip |
fixes to how commodities are looked up using quotes.cc
Diffstat (limited to 'binary.cc')
-rw-r--r-- | binary.cc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -9,7 +9,7 @@ namespace ledger { const unsigned long binary_magic_number = 0xFFEED765; -static const unsigned long format_version = 0x0002000c; +static const unsigned long format_version = 0x0002000e; bool binary_parser_t::test(std::istream& in) const { @@ -151,6 +151,7 @@ commodity_t * read_binary_commodity(std::istream& in) read_binary_amount(in, amt); commodity->history.insert(history_pair(when, amt)); } + read_binary_number(in, commodity->last_lookup); read_binary_amount(in, commodity->conversion); @@ -351,6 +352,7 @@ void write_binary_commodity(std::ostream& out, commodity_t * commodity) write_binary_number(out, (*i).first); write_binary_amount(out, (*i).second); } + write_binary_number(out, commodity->last_lookup); write_binary_amount(out, commodity->conversion); } |