From 59a080cdb6bafa6ab20cb20c1bf1f007ea64de84 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 1 Feb 2009 18:33:46 -0400 Subject: Changed many uses of "unsigned long" to std::size_t. --- src/cache.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/cache.cc') 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(data); read_long(data, xact->beg_line); xact->end_pos = read_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(out, 0); + write_long(out, 0); } else { - write_long(out, commodity->history->prices.size()); + write_long(out, commodity->history->prices.size()); foreach (commodity_t::history_map::value_type& pair, commodity->history->prices) { write_number(out, pair.first); -- cgit v1.2.3