[gnome-builder] python-indenter: fix -Wsign-compare warnings
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] python-indenter: fix -Wsign-compare warnings
- Date: Tue, 28 Feb 2017 19:40:58 +0000 (UTC)
commit 4f346b03616f9c697623d257082b3566a1ef43e3
Author: Christian Hergert <chergert redhat com>
Date: Tue Feb 28 11:40:49 2017 -0800
python-indenter: fix -Wsign-compare warnings
plugins/python-pack/ide-python-indenter.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plugins/python-pack/ide-python-indenter.c b/plugins/python-pack/ide-python-indenter.c
index 0b8d2e0..1428059 100644
--- a/plugins/python-pack/ide-python-indenter.c
+++ b/plugins/python-pack/ide-python-indenter.c
@@ -419,12 +419,11 @@ indent_parens (IdePythonIndenter *python,
(gtk_text_iter_get_line (iter) == gtk_text_iter_get_line (©)))
{
guint offset;
- gint i;
offset = gtk_text_iter_get_line_offset (iter);
str = g_string_new (NULL);
- for (i = 0; i <= offset; i++)
+ for (guint i = 0; i <= offset; i++)
g_string_append (str, " ");
return g_string_free (str, FALSE);
}
@@ -610,7 +609,7 @@ maybe_unindent_else_or_elif (IdePythonIndenter *python,
line_offset = gtk_text_iter_get_line_offset (©);
move_first_nonspace_char (©);
- if (line_offset != gtk_text_iter_get_line_offset (©))
+ if (line_offset != (guint)gtk_text_iter_get_line_offset (©))
IDE_GOTO (failure);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]