From 39674589f43133a89ad2c35dc0e08eb4b830b9c8 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Tue, 29 Mar 2011 16:48:37 +0000 Subject: [PATCH] Fix sign comparison warnings. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5647 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- src/document.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/document.c b/src/document.c index db25232b..b53726f7 100644 --- a/src/document.c +++ b/src/document.c @@ -1036,7 +1036,7 @@ static gint detect_indent_width(GeanyEditor *editor, GeanyIndentType type) } 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 @@ void document_apply_indent_settings(GeanyDocument *doc) { type = detect_indent_type(doc->editor); - if (type != iprefs->type) + if (type != (gint)iprefs->type) { const gchar *name = NULL;