[glib] gresource-tool: Clarify precedence of operations
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gresource-tool: Clarify precedence of operations
- Date: Sat, 13 Aug 2016 08:38:50 +0000 (UTC)
commit a42b6eab66bdcb4f551bd58cf61e956ae3c8fd7d
Author: Philip Withnall <philip withnall collabora co uk>
Date: Sat Aug 13 10:24:04 2016 +0200
gresource-tool: Clarify precedence of operations
As suggested by cppcheck, which knows more than me.
gio/gresource-tool.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gresource-tool.c b/gio/gresource-tool.c
index 984db37..262dd7b 100644
--- a/gio/gresource-tool.c
+++ b/gio/gresource-tool.c
@@ -99,7 +99,7 @@ list_resource (GResource *resource,
if (g_resource_get_info (resource, child, 0, &size, &flags, NULL))
{
if (details)
- g_print ("%s%s%6"G_GSIZE_FORMAT " %s %s\n", section, section[0] ? " " : "", size, flags &
G_RESOURCE_FLAGS_COMPRESSED ? "c" : "u", child);
+ g_print ("%s%s%6"G_GSIZE_FORMAT " %s %s\n", section, section[0] ? " " : "", size, (flags &
G_RESOURCE_FLAGS_COMPRESSED) ? "c" : "u", child);
else
g_print ("%s\n", child);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]