From 936759a46357b53cf726bc230e41b70c87dac1c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 3 Jul 2010 14:24:31 +0000 Subject: [PATCH] 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 --- src/xml/xml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.45.2