X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1bf538e210f8a69ac9cc430501758a2ac2d66678..8da2ab99009877d864c19b1ad90a9c0d02c61e2e:/samples/widgets/checkbox.cpp diff --git a/samples/widgets/checkbox.cpp b/samples/widgets/checkbox.cpp index fe14ea9657..4cd2da6f66 100644 --- a/samples/widgets/checkbox.cpp +++ b/samples/widgets/checkbox.cpp @@ -148,8 +148,8 @@ void CheckBoxWidgetsPage::OnCheckBox(wxCommandEvent& event) }; wxCheckBoxState state = (wxCheckBoxState) event.GetInt(); - wxCHECK_RET( (state >= 0) && (state < WXSIZEOF(stateNames)), - "event.GetInt() returned an invalid wxCheckBoxState" ); + wxCHECK_RET( (state >= (wxCheckBoxState)0) && (state < (wxCheckBoxState)WXSIZEOF(stateNames)), + _T("event.GetInt() returned an invalid wxCheckBoxState") ); wxLogMessage(wxT("Checkbox now set to state: %s"), stateNames[state].c_str());