diff options
Diffstat (limited to 'src')
-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 52e8d3c..42b1bfd 100644 --- a/src/saxparser.cc +++ b/src/saxparser.cc @@ -129,7 +129,7 @@ bool SAXParser::parse(const char *data, size_t size) { std::string xml; xml.append(data, size); - DEBUG(sax, "parse %d bytes [%s]\n", size, xml.c_str()); + DEBUG(sax, "parse %d bytes [%s]\n", (int)size, xml.c_str()); if(data == NULL || size == 0) return done; @@ -170,7 +170,7 @@ void SAXParser::parseError(const 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); |