Fix sign comparison warnings.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5647 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2011-03-29 16:48:37 +00:00
parent 388e685f30
commit 39674589f4

View File

@ -1036,7 +1036,7 @@ static gint detect_indent_width(GeanyEditor *editor, GeanyIndentType type)
} }
count = 0; count = 0;
width = iprefs->width; 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 */ /* give small lengths higher weight not for nested blocks to confuse detection */
if (widths[i] > count * 4) if (widths[i] > count * 4)
@ -1080,7 +1080,7 @@ void document_apply_indent_settings(GeanyDocument *doc)
{ {
type = detect_indent_type(doc->editor); type = detect_indent_type(doc->editor);
if (type != iprefs->type) if (type != (gint)iprefs->type)
{ {
const gchar *name = NULL; const gchar *name = NULL;