void SliderWidgetsPage::OnSlider(wxScrollEvent& event)
{
- long value = event.GetInt();
-
- wxASSERT_MSG( value == m_slider->GetValue(),
- wxT("slider value should be the same") );
+ wxASSERT_MSG( event.GetInt() == m_slider->GetValue(),
+ wxT("slider value should be the same") );
wxEventType eventType = event.GetEventType();
If this assert is triggered, there is an unknown slider event which
should be added to the above eventNames array.
*/
- wxASSERT_MSG(index >= 0 && index < WXSIZEOF(eventNames),
+ wxASSERT_MSG(index >= 0 && (size_t)index < WXSIZEOF(eventNames),
wxT("Unknown slider event") );