void wxbHistoryTextCtrl::OnKeyUp(wxKeyEvent& event) {
if (event.m_keyCode == WXK_UP) {
if (index > 0) {
- if (index == (history.Count()-1)) {
+ if (index == ((int)history.Count()-1)) {
history[index] = GetValue();
}
index--;
}
}
else if (event.m_keyCode == WXK_DOWN) {
- if (index < (history.Count()-1)) {
+ if (index < ((int)history.Count()-1)) {
index++;
SetValue(history[index]);
SetInsertionPointEnd();
}
}
-