diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index 0cce2ed6..b308e67e 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c @@ -1890,7 +1890,7 @@ XML_Index XMLCALL XML_GetCurrentByteIndex(XML_Parser parser) { if (eventPtr) - return parseEndByteIndex - (parseEndPtr - eventPtr); + return (XML_Index)(parseEndByteIndex - (parseEndPtr - eventPtr)); return -1; }