diff --git a/src/gtk1/choice.cpp b/src/gtk1/choice.cpp index 80300657bb..e1c2a36b50 100644 --- a/src/gtk1/choice.cpp +++ b/src/gtk1/choice.cpp @@ -133,7 +133,7 @@ bool wxChoice::Create( wxWindow *parent, wxWindowID id, GtkWidget *menu = gtk_menu_new(); - for (unsigned int i = 0; i < n; i++) + for (unsigned int i = 0; i < (unsigned int)n; i++) { GtkAddHelper(menu, i, choices[i]); } diff --git a/src/gtk1/listbox.cpp b/src/gtk1/listbox.cpp index 260122e33c..ebfe1b76cb 100644 --- a/src/gtk1/listbox.cpp +++ b/src/gtk1/listbox.cpp @@ -589,7 +589,7 @@ void wxListBox::DoInsertItems(const wxArrayString& items, unsigned int pos) InvalidateBestSize(); GList *children = m_list->children; - int length = g_list_length(children); + unsigned int length = g_list_length(children); wxCHECK_RET( pos <= length, wxT("invalid index in wxListBox::InsertItems") );