[glib: 2/3] gvariant: Clarify operator precedence
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 2/3] gvariant: Clarify operator precedence
- Date: Tue, 8 Dec 2020 15:56:06 +0000 (UTC)
commit d5778ec4790c88b69ee2235922186437e9d73827
Author: Philip Withnall <pwithnall endlessos org>
Date: Tue Dec 8 11:19:12 2020 +0000
gvariant: Clarify operator precedence
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 <pwithnall endlessos org>
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]