diff options
Diffstat (limited to 'src/saxparser.cc')
-rw-r--r-- | src/saxparser.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saxparser.cc b/src/saxparser.cc index 46a0f9d..1bd98a8 100644 --- a/src/saxparser.cc +++ b/src/saxparser.cc @@ -113,7 +113,7 @@ int SAXParser::parse() int SAXParser::parse(std::string buffer) { - DEBUG(sax, "parse(buffer %d bytes)\n", buffer.length()); + DEBUG(sax, "parse(buffer %d bytes)\n", (int)buffer.length()); if(!XML_Parse(p, buffer.c_str(), buffer.length(), true)) { parseError((char*)buffer.c_str(), buffer.length(), @@ -128,7 +128,7 @@ int SAXParser::parse(std::string buffer) void SAXParser::parseError(char *buf, size_t len, std::string error, int lineno) { fprintf(stderr, "SAXParser error at line %d: %s\n", lineno, error.c_str()); - fprintf(stderr, "\tBuffer %u bytes: [", len); + fprintf(stderr, "\tBuffer %u bytes: [", (int)len); if(fwrite(buf, len, 1, stderr) != len) {} fprintf(stderr, "]\n"); fflush(stderr); |