#87 Patch to prevent compiler warning when building for 64-bit

Feature Request
open
nobody
patch (1)
5
2013-09-29
2013-09-29
calzakk
No

To avoid a compiler warning when building for 64-bit, could you change the XML_GetCurrentByteIndex function in xmlparse.c to the following (i.e. cast the subtraction):

XML_Index XMLCALL
XML_GetCurrentByteIndex(XML_Parser parser)
{
if (eventPtr)
return parseEndByteIndex - (XML_Index)(parseEndPtr - eventPtr);
return -1;
}

Discussion