diff --git a/src/fe-gtk/chanlist.c b/src/fe-gtk/chanlist.c index 43685fab..e652c669 100644 --- a/src/fe-gtk/chanlist.c +++ b/src/fe-gtk/chanlist.c @@ -452,7 +452,7 @@ void fe_add_chan_list (server *serv, char *chan, char *users, char *topic) { chanlistrow *next_row; - int len = strlen (chan) + 1; + size_t len = strlen (chan) + 1; /* we allocate the struct and channel string in one go */ next_row = g_malloc (sizeof (chanlistrow) + len); diff --git a/src/fe-gtk/gtkutil.c b/src/fe-gtk/gtkutil.c index 7853466d..e4cf1790 100644 --- a/src/fe-gtk/gtkutil.c +++ b/src/fe-gtk/gtkutil.c @@ -976,7 +976,7 @@ gtkutil_copy_to_clipboard (GtkWidget *widget, GdkAtom selection, win = gtk_widget_get_toplevel (GTK_WIDGET (widget)); if (gtk_widget_is_toplevel (win)) { - int len = strlen (str); + gint len = (gint) strlen (str); if (selection) { diff --git a/src/fe-gtk/menu.c b/src/fe-gtk/menu.c index 90fa4847..6f7e2f09 100644 --- a/src/fe-gtk/menu.c +++ b/src/fe-gtk/menu.c @@ -2309,7 +2309,7 @@ menu_reorder (GtkMenu *menu, GtkWidget *item, int pos) if (pos < 0) /* position offset from end/bottom */ { GList *children = gtk_container_get_children (GTK_CONTAINER (menu)); - int length = g_list_length (children); + gint length = (gint) g_list_length (children); g_list_free (children); gtk_menu_reorder_child (menu, item, (length + pos) - 1); @@ -2381,7 +2381,7 @@ menu_add_sub (GtkWidget *menu, menu_entry *me) if (pos < 0) /* position offset from end/bottom */ { GList *children = gtk_container_get_children (GTK_CONTAINER (menu)); - int length = g_list_length (children); + gint length = (gint) g_list_length (children); g_list_free (children); pos = length + pos; diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c index 7ae99106..47c23e76 100644 --- a/src/fe-gtk/setup.c +++ b/src/fe-gtk/setup.c @@ -2180,7 +2180,7 @@ unslash (char *dir) { if (dir[0]) { - int len = strlen (dir) - 1; + size_t len = strlen (dir) - 1; #ifdef WIN32 if (dir[len] == '/' || dir[len] == '\\') #else