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>
This commit is contained in:
Philip Withnall 2020-12-08 11:19:12 +00:00
parent 3a7acd24a9
commit d5778ec479

View File

@ -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;