summaryrefslogtreecommitdiff
path: root/src/cache.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-01 18:33:46 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-01 18:33:46 -0400
commit59a080cdb6bafa6ab20cb20c1bf1f007ea64de84 (patch)
tree99ee6bdb62d3e3fdedfaa494723e4a48ec8ec6e4 /src/cache.cc
parent9f579902fb6b30cac426110dfd3faa55017b552b (diff)
downloadfork-ledger-59a080cdb6bafa6ab20cb20c1bf1f007ea64de84.tar.gz
fork-ledger-59a080cdb6bafa6ab20cb20c1bf1f007ea64de84.tar.bz2
fork-ledger-59a080cdb6bafa6ab20cb20c1bf1f007ea64de84.zip
Changed many uses of "unsigned long" to std::size_t.
Diffstat (limited to 'src/cache.cc')
-rw-r--r--src/cache.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cache.cc b/src/cache.cc
index 4e546718..a085e9a3 100644
--- a/src/cache.cc
+++ b/src/cache.cc
@@ -72,6 +72,7 @@ void read_xact(const char *& data, xact_t * xact)
xact->add_flags(XACT_BULK_ALLOC);
read_string(data, xact->note);
+ // jww (2009-02-01): Use istream_pos_type
xact->beg_pos = read_long<unsigned long>(data);
read_long(data, xact->beg_line);
xact->end_pos = read_long<unsigned long>(data);
@@ -249,7 +250,7 @@ commodity_t::base_t * read_commodity_base(const char *& data)
commodity->note = str;
read_number(data, commodity->precision);
- unsigned long flags;
+ commodity_t::base_t::flags_t flags;
read_number(data, flags);
commodity->set_flags(flags);
@@ -320,9 +321,9 @@ void write_commodity_base_extra(std::ostream& out,
#endif
if (! commodity->history) {
- write_long<unsigned long>(out, 0);
+ write_long<std::size_t>(out, 0);
} else {
- write_long<unsigned long>(out, commodity->history->prices.size());
+ write_long<std::size_t>(out, commodity->history->prices.size());
foreach (commodity_t::history_map::value_type& pair,
commodity->history->prices) {
write_number(out, pair.first);