From: Włodzimierz Skiba Date: Thu, 28 Oct 2004 11:41:35 +0000 (+0000) Subject: Warning fix due to unsigned nature of wParam. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bee671476e88bd4ebb2f8b7c1e484c653e499647 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 --- diff --git a/src/msw/combobox.cpp b/src/msw/combobox.cpp index 49344341f1..73c6852660 100644 --- a/src/msw/combobox.cpp +++ b/src/msw/combobox.cpp @@ -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);