[yelp] Fix sign comparison warning
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp] Fix sign comparison warning
- Date: Mon, 9 Feb 2015 23:36:22 +0000 (UTC)
commit 06fe0a38431e9cdb0d30c3dbe71b195ff6ab576d
Author: David King <amigadave amigadave com>
Date: Mon Feb 9 20:38:13 2015 +0000
Fix sign comparison warning
libyelp/yelp-info-parser.c | 8 ++++----
libyelp/yelp-man-parser.c | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libyelp/yelp-info-parser.c b/libyelp/yelp-info-parser.c
index eabf95e..9a11f7f 100644
--- a/libyelp/yelp-info-parser.c
+++ b/libyelp/yelp-info-parser.c
@@ -387,7 +387,7 @@ static char
gssize bytes;
GString *string;
gchar *str;
- int i;
+ gsize i;
gfile = g_file_new_for_path (file);
file_stream = g_file_read (gfile, NULL, NULL);
@@ -470,8 +470,8 @@ static char
char *filename;
char *str;
char **pages;
- int offset;
- int plength;
+ gsize offset;
+ gsize plength;
debug_print (DB_DEBUG, "Line: %s\n", *ptr);
items = g_strsplit (*ptr, ": ", 2);
@@ -492,7 +492,7 @@ static char
continue;
}
- offset = atoi(items[1]);
+ offset = (gsize) atoi (items[1]);
plength = strlen(pages[1]);
debug_print (DB_DEBUG, "Need to make string %s+%i bytes = %i\n",
diff --git a/libyelp/yelp-man-parser.c b/libyelp/yelp-man-parser.c
index 3a93e72..a3f97a6 100644
--- a/libyelp/yelp-man-parser.c
+++ b/libyelp/yelp-man-parser.c
@@ -1378,7 +1378,7 @@ fixup_links (YelpManParser *parser,
xmlXPathContextPtr context;
xmlXPathObjectPtr path_obj;
xmlNodeSetPtr nodeset;
- guint i;
+ gint i;
context = xmlXPathNewContext (parser->doc);
g_return_if_fail (context);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]