SF.net SVN: geany:[5647] trunk/src/document.c

ntrel at users.sourceforge.net ntrel at xxxxx
Tue Mar 29 16:48:37 UTC 2011


Revision: 5647
          http://geany.svn.sourceforge.net/geany/?rev=5647&view=rev
Author:   ntrel
Date:     2011-03-29 16:48:37 +0000 (Tue, 29 Mar 2011)

Log Message:
-----------
Fix sign comparison warnings.

Modified Paths:
--------------
    trunk/src/document.c

Modified: trunk/src/document.c
===================================================================
--- trunk/src/document.c	2011-03-29 14:02:19 UTC (rev 5646)
+++ trunk/src/document.c	2011-03-29 16:48:37 UTC (rev 5647)
@@ -1036,7 +1036,7 @@
 	}
 	count = 0;
 	width = iprefs->width;
-	for (i = 0; i < G_N_ELEMENTS(widths); i++)
+	for (i = 0; i < (gint)G_N_ELEMENTS(widths); i++)
 	{
 		/* give small lengths higher weight not for nested blocks to confuse detection */
 		if (widths[i] > count * 4)
@@ -1080,7 +1080,7 @@
 	{
 		type = detect_indent_type(doc->editor);
 
-		if (type != iprefs->type)
+		if (type != (gint)iprefs->type)
 		{
 			const gchar *name = NULL;
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list