From e718569540d629c82a9e9e9692fe9cdef9c5fc5f Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Mon, 9 Jul 2018 15:59:16 -0600 Subject: inline.h: Use 'do {} while' instead of 'while {}' --- inline.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inline.h') 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) -- cgit v1.2.1