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/gnucash.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gnucash.cc') diff --git a/src/gnucash.cc b/src/gnucash.cc index 29528013..805be514 100644 --- a/src/gnucash.cc +++ b/src/gnucash.cc @@ -64,7 +64,7 @@ static XML_Parser parser; static path pathname; static std::size_t src_idx; static istream_pos_type beg_pos; -static unsigned long beg_line; +static std::size_t beg_line; static xact_t::state_t curr_state; @@ -425,14 +425,14 @@ std::size_t gnucash_parser_t::parse(std::istream& in, in.getline(buf, BUFSIZ - 1); std::strcat(buf, "\n"); if (! XML_Parse(parser, buf, std::strlen(buf), in.eof())) { - //unsigned long line = XML_GetCurrentLineNumber(parser) - offset++; + //std::size_t line = XML_GetCurrentLineNumber(parser) - offset++; const char * msg = XML_ErrorString(XML_GetErrorCode(parser)); XML_ParserFree(parser); throw parse_error(msg); } if (! have_error.empty()) { - //unsigned long line = XML_GetCurrentLineNumber(parser) - offset++; + //std::size_t line = XML_GetCurrentLineNumber(parser) - offset++; parse_error err(have_error); std::cerr << "Error: " << err.what() << std::endl; have_error = ""; -- cgit v1.2.3