All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] tests/check-qdict: Fix missing brackets
@ 2017-04-06 15:41 Dr. David Alan Gilbert (git)
  2017-04-06 15:49 ` Eric Blake
  2017-04-12  9:04 ` [Qemu-devel] [PATCH] " Markus Armbruster
  0 siblings, 2 replies; 6+ messages in thread
From: Dr. David Alan Gilbert (git) @ 2017-04-06 15:41 UTC (permalink / raw)
  To: qemu-devel, armbru, mreitz

From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>

Gcc 7 (on Fedora 26) spotted odd use of integers instead of a
boolean; it's got a point.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
---
 tests/check-qdict.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/check-qdict.c b/tests/check-qdict.c
index 81162ee572..6f3fbcf9c1 100644
--- a/tests/check-qdict.c
+++ b/tests/check-qdict.c
@@ -559,7 +559,7 @@ static void qdict_join_test(void)
         g_assert(qdict_size(dict1) == 2);
         g_assert(qdict_size(dict2) == !overwrite);
 
-        g_assert(qdict_get_int(dict1, "foo") == overwrite ? 84 : 42);
+        g_assert(qdict_get_int(dict1, "foo") == (overwrite ? 84 : 42));
         g_assert(qdict_get_int(dict1, "bar") == 23);
 
         if (!overwrite) {
-- 
2.12.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-04-12  9:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-06 15:41 [Qemu-devel] [PATCH] tests/check-qdict: Fix missing brackets Dr. David Alan Gilbert (git)
2017-04-06 15:49 ` Eric Blake
2017-04-06 15:52   ` Dr. David Alan Gilbert
2017-04-06 15:55   ` [Qemu-devel] [PATCH for-2.9?] " Eric Blake
2017-04-07 21:27     ` Philippe Mathieu-Daudé
2017-04-12  9:04 ` [Qemu-devel] [PATCH] " Markus Armbruster

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.