diff -Naur sooperlooper-1.1.0-orig/src/gui/midi_bind_panel.cpp sooperlooper-1.1.0/src/gui/midi_bind_panel.cpp --- sooperlooper-1.1.0-orig/src/gui/midi_bind_panel.cpp 2007-04-14 21:12:31.000000000 -0600 +++ sooperlooper-1.1.0/src/gui/midi_bind_panel.cpp 2007-05-06 19:20:55.000000000 -0600 @@ -465,7 +465,7 @@ itemid++; } - _listctrl->SortItems (list_sort_callback, (unsigned) _listctrl); + _listctrl->SortItems (list_sort_callback, (unsigned long) _listctrl); for (long i=0; i < _listctrl->GetItemCount(); ++i) { item.SetId(i); @@ -582,7 +582,7 @@ _currinfo.channel = _chan_spin->GetValue() - 1; if (_loopnum_combo->GetSelection() >= 0) { - _currinfo.instance = (int) _loopnum_combo->GetClientData(_loopnum_combo->GetSelection()) - 1; + _currinfo.instance = (unsigned long) _loopnum_combo->GetClientData(_loopnum_combo->GetSelection()) - 1; } else { _currinfo.instance = -1;