[gnome-commander] src/gnome-cmd-xml-config.cc: -Wsign-compare
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] src/gnome-cmd-xml-config.cc: -Wsign-compare
- Date: Fri, 28 Apr 2017 21:44:19 +0000 (UTC)
commit 5b71f0c9dc9215a598a1bb0d4e46a87b9f2141f6
Author: Mamoru TASAKA <mtasaka fedoraproject org>
Date: Tue Apr 25 13:05:24 2017 +0900
src/gnome-cmd-xml-config.cc: -Wsign-compare
src/gnome-cmd-xml-config.cc:848:16: error: comparison between signed and unsigned integer expressions
[-Werror=sign-compare]
if (xml_len==-1)
xml_size has type gsize, so just cast.
src/gnome-cmd-xml-config.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-xml-config.cc b/src/gnome-cmd-xml-config.cc
index c25fc53..79bca95 100644
--- a/src/gnome-cmd-xml-config.cc
+++ b/src/gnome-cmd-xml-config.cc
@@ -845,7 +845,7 @@ gboolean gnome_cmd_xml_config_parse (const gchar *xml, gsize xml_len, GnomeCmdDa
xml_fs_names.add(LEFT,"left");
xml_fs_names.add(RIGHT,"right");
- if (xml_len==-1)
+ if (xml_len==(gsize)-1)
xml_len = strlen (xml);
GMarkupParseContext *context = g_markup_parse_context_new (&parser, GMarkupParseFlags(0), &cfg, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]