summaryrefslogtreecommitdiff
path: root/inline.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-07-09 15:59:16 -0600
committerKarl Williamson <khw@cpan.org>2018-08-20 09:50:29 -0600
commite718569540d629c82a9e9e9692fe9cdef9c5fc5f (patch)
tree7928704bc02b59ce8848a6ddb800d9b2cf36dee5 /inline.h
parent0a441b11194e53e58982ddce10828ba344f772a5 (diff)
downloadperl-e718569540d629c82a9e9e9692fe9cdef9c5fc5f.tar.gz
inline.h: Use 'do {} while' instead of 'while {}'
Diffstat (limited to 'inline.h')
-rw-r--r--inline.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/inline.h b/inline.h
index 638f8189eb..0d436564dc 100644
--- a/inline.h
+++ b/inline.h
@@ -1597,9 +1597,9 @@ Perl_utf8_hop_back(const U8 *s, SSize_t off, const U8 *start)
assert(off <= 0);
while (off++ && s > start) {
- s--;
- while (UTF8_IS_CONTINUATION(*s) && s > start)
+ do {
s--;
+ } while (UTF8_IS_CONTINUATION(*s) && s > start);
}
GCC_DIAG_IGNORE(-Wcast-qual)