diff --git a/src/msw/calctrl.cpp b/src/msw/calctrl.cpp index 8a10681823..37bd62296f 100644 --- a/src/msw/calctrl.cpp +++ b/src/msw/calctrl.cpp @@ -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;