[geany/geany-plugins] 55bd84: codenav: Fix signed vs. unsigned comparisons

Colomban Wendling git-noreply at xxxxx
Mon Oct 20 15:35:39 UTC 2014


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Mon, 20 Oct 2014 15:35:39 UTC
Commit:      55bd845b9593fe7312028b6b548d78a407722124
             https://github.com/geany/geany-plugins/commit/55bd845b9593fe7312028b6b548d78a407722124

Log Message:
-----------
codenav: Fix signed vs. unsigned comparisons


Modified Paths:
--------------
    codenav/src/codenavigation.c
    codenav/src/switch_head_impl.c

Modified: codenav/src/codenavigation.c
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -120,7 +120,7 @@ static void load_configuration(void)
 	gchar *config_filename = NULL;
 	gchar **impl_list  = NULL, **head_list = NULL;
 	gsize head_list_len, impl_list_len;
-	int i;
+	gsize i;
 
 	/* Load user configuration */ 
 	config = g_key_file_new();
@@ -220,7 +220,7 @@ void plugin_cleanup(void)
 static void
 on_configure_response(GtkDialog* dialog, gint response, gpointer user_data)
 {
-	gint i=0;
+	gsize i=0;
 
 	GKeyFile *config = NULL;
 	gchar *config_filename = NULL;


Modified: codenav/src/switch_head_impl.c
3 lines changed, 2 insertions(+), 1 deletions(-)
===================================================================
@@ -141,7 +141,8 @@ fill_languages_list(const gchar** impl_list, const gchar** head_list, gsize n)
 {
 	gchar **splitted_list;
 	Language* lang = NULL;
-	gint i, j;
+	gsize i;
+	guint j;
 	
 	languages_clean();
 



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list