]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/wx-console/wxbhistorytextctrl.cpp
Some Win32 fixes
[bacula/bacula] / bacula / src / wx-console / wxbhistorytextctrl.cpp
index eb5120ef4c06e296e6e74a7b8beade2aa5437db3..9e282c6ac7d069ee93b124918a07f05a7be1235b 100644 (file)
@@ -50,7 +50,7 @@ void wxbHistoryTextCtrl::HistoryAdd(wxString cmd) {
 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--;
@@ -59,7 +59,7 @@ void wxbHistoryTextCtrl::OnKeyUp(wxKeyEvent& event) {
       }
    }
    else if (event.m_keyCode == WXK_DOWN) {
-      if (index < (history.Count()-1)) {
+      if (index < ((int)history.Count()-1)) {
          index++;
          SetValue(history[index]);
          SetInsertionPointEnd();
@@ -70,4 +70,3 @@ void wxbHistoryTextCtrl::OnKeyUp(wxKeyEvent& event) {
    }
 }
 
-