diff options
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 = ""; |