From d5778ec4790c88b69ee2235922186437e9d73827 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 8 Dec 2020 11:19:12 +0000 Subject: [PATCH] gvariant: Clarify operator precedence MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This doesn’t change the behaviour of the code, but should squash some compiler/static analysis warnings about ‘are you sure you got the precedence right here?’. Coverity CID: #1159470 Signed-off-by: Philip Withnall --- glib/gvariant.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/gvariant.c b/glib/gvariant.c index 039f35590..5584614c6 100644 --- a/glib/gvariant.c +++ b/glib/gvariant.c @@ -4289,7 +4289,7 @@ g_variant_format_string_scan (const gchar *string, const gchar *limit, const gchar **endptr) { -#define next_char() (string == limit ? '\0' : *string++) +#define next_char() (string == limit ? '\0' : *(string++)) #define peek_char() (string == limit ? '\0' : *string) char c;