From fafa563280ee1f5da9a5ec58ea19df708ab69e0e Mon Sep 17 00:00:00 2001 From: George Tasker Date: Fri, 13 Apr 2001 11:40:21 +0000 Subject: [PATCH 1/1] Fixed a BCC compilation ambiguity for wxString [int] vs [unsigned int] git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/src/xml/xmlres.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/src/xml/xmlres.cpp b/contrib/src/xml/xmlres.cpp index e3d304dc8a..3acb28f213 100644 --- a/contrib/src/xml/xmlres.cpp +++ b/contrib/src/xml/xmlres.cpp @@ -561,7 +561,7 @@ wxColour wxXmlResourceHandler::GetColour(const wxString& param) wxString v = GetParamValue(param); unsigned long tmp = 0; - if (v.Length() != 7 || v[0] != wxT('#') || + if (v.Length() != 7 || v[0u] != wxT('#') || wxSscanf(v.c_str(), wxT("#%lX"), &tmp) != 1) { wxLogError(_("XML resource: Incorrect colour specification '%s' for property '%s'."), -- 2.45.2