[gnome-builder] beautifier: make iter use same signedness in comparison



commit 156020df4c574d1b75398d3b823b373e5cf72aab
Author: Christian Hergert <chergert redhat com>
Date:   Sun Jan 7 13:35:05 2018 -0800

    beautifier: make iter use same signedness in comparison

 .../beautifier/gb-beautifier-editor-addin.c        |    2 +-
 src/plugins/beautifier/gb-beautifier-helper.c      |    2 +-
 src/plugins/beautifier/gb-beautifier-process.c     |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/beautifier/gb-beautifier-editor-addin.c 
b/src/plugins/beautifier/gb-beautifier-editor-addin.c
index f40fec4..5aff9e7 100644
--- a/src/plugins/beautifier/gb-beautifier-editor-addin.c
+++ b/src/plugins/beautifier/gb-beautifier-editor-addin.c
@@ -418,7 +418,7 @@ gb_beautifier_editor_addin_unload (IdeEditorAddin       *addin,
   ide_perspective_views_foreach (IDE_PERSPECTIVE (self->editor), (GtkCallback)cleanup_view_cb, self);
   if (self->entries != NULL)
     {
-      for (gint i =0; i < self->entries->len; i++)
+      for (guint i = 0; i < self->entries->len; i++)
         {
           entry = &g_array_index (self->entries, GbBeautifierConfigEntry, i);
           gb_beautifier_helper_config_entry_remove_temp_files (entry);
diff --git a/src/plugins/beautifier/gb-beautifier-helper.c b/src/plugins/beautifier/gb-beautifier-helper.c
index 57d5238..ffc620d 100644
--- a/src/plugins/beautifier/gb-beautifier-helper.c
+++ b/src/plugins/beautifier/gb-beautifier-helper.c
@@ -116,7 +116,7 @@ gb_beautifier_helper_config_entry_remove_temp_files (GbBeautifierConfigEntry *co
 
   if (config_entry->command_args != NULL)
     {
-      for (gint i = 0; i < config_entry->command_args->len; i++)
+      for (guint i = 0; i < config_entry->command_args->len; i++)
         {
           arg = &g_array_index (config_entry->command_args, GbBeautifierCommandArg, i);
           if (arg->is_temp && !dzl_str_empty0 (arg->str))
diff --git a/src/plugins/beautifier/gb-beautifier-process.c b/src/plugins/beautifier/gb-beautifier-process.c
index 2c78725..115ccd0 100644
--- a/src/plugins/beautifier/gb-beautifier-process.c
+++ b/src/plugins/beautifier/gb-beautifier-process.c
@@ -98,7 +98,7 @@ command_args_expand (GbBeautifierEditorAddin *self,
   else
     has_config = FALSE;
 
-  for (gint i = 0; g_ptr_array_index (args, i) != NULL; ++i)
+  for (guint i = 0; g_ptr_array_index (args, i) != NULL; ++i)
     {
       arg_adr = (gchar **)&g_ptr_array_index (args, i);
       if (NULL != (new_arg = gb_beautifier_helper_match_and_replace (*arg_adr, "@s@", src_path)))
@@ -333,7 +333,7 @@ command_args_copy (GArray *args)
   g_assert (args != NULL);
 
   args_copy = g_ptr_array_new_with_free_func (g_free);
-  for (gint i = 0; i < args->len; ++i)
+  for (guint i = 0; i < args->len; ++i)
     {
       GbBeautifierCommandArg *arg = &g_array_index (args, GbBeautifierCommandArg, i);
 


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