summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-12-05 16:01:36 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-12-05 16:01:36 +0100
commit5f1d4c0da0c9ad7c218436c6b83414ccd117f4ee (patch)
treec56c6ce664c4f4c9ffe05974bc069955ef559337
parent89a9ad0b6652065ea03db23ced52d7129295572d (diff)
Fix 64bit size_t in format string.
-rw-r--r--src/saxparser.cc4
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);