Added -Wconverison and fixed the warnings.
[jmdict-cli.git] / xmlparser.h
index 29745eb36ec584d9a22b078605035df3a4bed10c..08b3c3885d90716ae7ed697414ec4ddac6b0e86b 100644 (file)
@@ -80,7 +80,7 @@ public:
         while (in) {
             char* buffer = static_cast<char*>(XML_GetBuffer(m_parser, BLOCK_SIZE));
             in.read(buffer, BLOCK_SIZE);
-            XML_ParseBuffer(m_parser, in.gcount(), in.eof());
+            XML_ParseBuffer(m_parser, static_cast<int>(in.gcount()), in.eof());
         }
     }