summaryrefslogtreecommitdiff
path: root/inline.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2016-09-13 16:40:44 -0600
committerKarl Williamson <khw@cpan.org>2016-09-17 17:22:23 -0600
commita09ec51a7fc3455257a1239b61ef7b53a6b0570d (patch)
treef6bc54242ec3e2f5dbdcd36721ede4a5fc47c170 /inline.h
parentdd819584009e7adfc0786ed5beaf6c805ef05a2d (diff)
downloadperl-a09ec51a7fc3455257a1239b61ef7b53a6b0570d.tar.gz
append_utf8_from_native_byte: Add parens for clarity
I can never remember the precedence of dereference and ++.
Diffstat (limited to 'inline.h')
-rw-r--r--inline.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/inline.h b/inline.h
index 8071e6e0b7..74343a1a3c 100644
--- a/inline.h
+++ b/inline.h
@@ -269,10 +269,10 @@ S_append_utf8_from_native_byte(const U8 byte, U8** dest)
PERL_ARGS_ASSERT_APPEND_UTF8_FROM_NATIVE_BYTE;
if (NATIVE_BYTE_IS_INVARIANT(byte))
- *(*dest)++ = byte;
+ *((*dest)++) = byte;
else {
- *(*dest)++ = UTF8_EIGHT_BIT_HI(byte);
- *(*dest)++ = UTF8_EIGHT_BIT_LO(byte);
+ *((*dest)++) = UTF8_EIGHT_BIT_HI(byte);
+ *((*dest)++) = UTF8_EIGHT_BIT_LO(byte);
}
}