From d62798204094ba1c0b8a0c6585c69c4c17185abd Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Thu, 16 Jun 2016 17:19:21 +0200 Subject: [PATCH] Address VS2010 compile warning xmlparse.c(1893): warning C4244: 'return' : conversion from '__int64' to 'XML_Index', possible loss of data Reported by tbeu --- expat/lib/xmlparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }