summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-11-28 21:04:36 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-11-28 21:04:36 +0100
commit464a18dd3e473d9fa9acdbfb144ca730148fa33a (patch)
treeaead388fa801a84af43428ec5f6ee789169c8bd4 /src
parenta3979868c31474eaadc3aaa0d960329043b8be6a (diff)
Fix 64bit compile warning.
Diffstat (limited to 'src')
-rw-r--r--src/saxparser.cc4
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);