From: Václav Slavík Date: Sat, 3 Jul 2010 14:24:31 +0000 (+0000) Subject: Fixed XML parser error text formatting. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/936759a46357b53cf726bc230e41b70c87dac1c2?ds=sidebyside Fixed XML parser error text formatting. XML_GetCurrentLineNumber() returns int in some versions of Expat and unsigned long (or even uint64_t) in other versions. Just cast the value to int so that it works correctly with all versions. Fixes #12196. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/xml/xml.cpp b/src/xml/xml.cpp index 534777558a..6c3a9e5d40 100644 --- a/src/xml/xml.cpp +++ b/src/xml/xml.cpp @@ -744,7 +744,7 @@ bool wxXmlDocument::Load(wxInputStream& stream, const wxString& encoding, int fl *wxConvCurrent); wxLogError(_("XML parsing error: '%s' at line %d"), error.c_str(), - XML_GetCurrentLineNumber(parser)); + (int)XML_GetCurrentLineNumber(parser)); ok = false; break; }