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
This commit is contained in:
@@ -744,7 +744,7 @@ bool wxXmlDocument::Load(wxInputStream& stream, const wxString& encoding, int fl
|
|||||||
*wxConvCurrent);
|
*wxConvCurrent);
|
||||||
wxLogError(_("XML parsing error: '%s' at line %d"),
|
wxLogError(_("XML parsing error: '%s' at line %d"),
|
||||||
error.c_str(),
|
error.c_str(),
|
||||||
XML_GetCurrentLineNumber(parser));
|
(int)XML_GetCurrentLineNumber(parser));
|
||||||
ok = false;
|
ok = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user