diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-01 18:33:46 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-01 18:33:46 -0400 |
commit | 59a080cdb6bafa6ab20cb20c1bf1f007ea64de84 (patch) | |
tree | 99ee6bdb62d3e3fdedfaa494723e4a48ec8ec6e4 /src/gnucash.cc | |
parent | 9f579902fb6b30cac426110dfd3faa55017b552b (diff) | |
download | fork-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/gnucash.cc')
-rw-r--r-- | src/gnucash.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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 = ""; |