From 3b69b47ca6e1a595bd357f849d46b10d98444fce Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Fri, 24 Mar 2006 08:19:35 +0000 Subject: [PATCH] Warning fixes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk1/choice.cpp | 2 +- src/gtk1/listbox.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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") ); -- 2.49.0