[devhelp/wip/swilmet/fix-warnings] Window: fix comparisons between signed and unsigned int



commit e2268020dcd3c4e0b6a65bd153ff331dcbaf5b82
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Nov 27 13:04:14 2016 +0100

    Window: fix comparisons between signed and unsigned int

 src/dh-window.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/dh-window.c b/src/dh-window.c
index af3c993..31124fe 100644
--- a/src/dh-window.c
+++ b/src/dh-window.c
@@ -306,7 +306,7 @@ window_get_current_zoom_level_index (DhWindow *window)
         WebKitWebView *web_view;
         double previous;
         double zoom_level = ZOOM_DEFAULT;
-        int i;
+        guint i;
 
         web_view = window_get_active_web_view (window);
         if (web_view != NULL)
@@ -656,7 +656,7 @@ dh_window_init (DhWindow *window)
         DhWindowPrivate  *priv;
         GtkAccelGroup *accel_group;
         GClosure      *closure;
-        gint           i;
+        guint          i;
 
         gtk_widget_init_template (GTK_WIDGET (window));
 
@@ -1282,7 +1282,7 @@ window_web_view_tab_accel_cb (GtkAccelGroup   *accel_group,
 {
         DhWindowPrivate *priv;
         gint page_num;
-        gint i;
+        guint i;
 
         priv = dh_window_get_instance_private (window);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]