Warning fix due to unsigned nature of wParam.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -257,7 +257,7 @@ WXLRESULT wxComboBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lPara
|
||||
|
||||
case CB_SETCURSEL:
|
||||
// Selection was set with SetSelection. Update the value too.
|
||||
if (wParam < 0 || wParam > GetCount())
|
||||
if ((int)wParam > GetCount())
|
||||
m_value = wxEmptyString;
|
||||
else
|
||||
m_value = GetString(wParam);
|
||||
|
Reference in New Issue
Block a user