[latexila/wip/build-system-update: 4/6] TemplatesPersonal: fix comparison between signed and unsigned int
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila/wip/build-system-update: 4/6] TemplatesPersonal: fix comparison between signed and unsigned int
- Date: Sun, 18 Dec 2016 14:34:58 +0000 (UTC)
commit c990733f6eef0ef61286e906040924fa6463b955
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Dec 18 15:14:07 2016 +0100
TemplatesPersonal: fix comparison between signed and unsigned int
For the following code:
for (i = 0; i < n_names; i++)
The type of n_names is gsize, which is an unsigned long.
src/liblatexila/latexila-templates-personal.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/liblatexila/latexila-templates-personal.c b/src/liblatexila/latexila-templates-personal.c
index eac41e2..e17326f 100644
--- a/src/liblatexila/latexila-templates-personal.c
+++ b/src/liblatexila/latexila-templates-personal.c
@@ -103,7 +103,7 @@ load_rc_file (LatexilaTemplatesPersonal *templates)
gsize n_icons;
gsize n_files;
gboolean has_files;
- gint i;
+ guint i;
GError *error = NULL;
rc_file = get_rc_file ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]