fix for g++ signed/unsigned comparison warning

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-04-05 17:07:04 +00:00
parent 823aaeb9c4
commit c912c9400c

View File

@@ -330,7 +330,7 @@ void wxCalendarCtrl::UpdateMarks()
{
MONTHDAYSTATE states[3];
const int nMonths = MonthCal_GetMonthRange(GetHwnd(), GMR_DAYSTATE, NULL);
wxCHECK_RET( nMonths <= WXSIZEOF(states), "unexpected months range" );
wxCHECK_RET( nMonths <= (int)WXSIZEOF(states), "unexpected months range" );
for ( int i = 0; i < nMonths; i++ )
states[i] = m_marks;