SF.net SVN: geany: [1374] trunk/src

ntrel at users.sourceforge.net ntrel at xxxxx
Fri Mar 9 12:18:43 UTC 2007


Revision: 1374
          http://svn.sourceforge.net/geany/?rev=1374&view=rev
Author:   ntrel
Date:     2007-03-09 04:18:42 -0800 (Fri, 09 Mar 2007)

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

Modified Paths:
--------------
    trunk/src/prefs.c
    trunk/src/sci_cb.c

Modified: trunk/src/prefs.c
===================================================================
--- trunk/src/prefs.c	2007-03-08 18:02:08 UTC (rev 1373)
+++ trunk/src/prefs.c	2007-03-09 12:18:42 UTC (rev 1374)
@@ -676,7 +676,7 @@
 		// re-colourise all open documents, if tab width or long line settings have changed
 		for (i = 0; i < doc_array->len; i++)
 		{
-			if (DOC_IDX_VALID(i))
+			if (doc_list[i].is_valid)
 			{
 				document_apply_update_prefs(i);
 				if (! app->pref_editor_folding)

Modified: trunk/src/sci_cb.c
===================================================================
--- trunk/src/sci_cb.c	2007-03-08 18:02:08 UTC (rev 1373)
+++ trunk/src/sci_cb.c	2007-03-09 12:18:42 UTC (rev 1374)
@@ -364,7 +364,8 @@
 static void get_indent(ScintillaObject *sci, gint pos, gboolean use_this_line)
 {
 	// very simple indentation algorithm
-	gint i, prev_line, len, j = 0;
+	guint i, len, j = 0;
+	gint prev_line;
 	gchar *linebuf;
 
 	prev_line = sci_get_line_from_position(sci, pos);
@@ -414,8 +415,8 @@
 				}
 				else
 				{	// insert as many spaces as a tabulator would take
-					gint i;
-					for (i = 0; i < app->pref_editor_tab_width; i++)
+					gint n;
+					for (n = 0; n < app->pref_editor_tab_width; n++)
 						indent[j++] = ' ';
 				}
 			}


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