Skip to content

Commit 8f1dfd6

Browse files
committed
is_utf8_invariant_string_loc: mv declarations, do init
This moves two variable declarations, making the ARGS_ASSERT macro first, and it combines one declaration with its initialization.
1 parent 1f3c53e commit 8f1dfd6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

inline.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,16 +1515,15 @@ C<L</is_utf8_string>> and C<L</is_utf8_fixed_width_buf_flags>>.
15151515
PERL_STATIC_INLINE bool
15161516
Perl_is_utf8_invariant_string_loc(const U8* const s, STRLEN len, const U8 ** ep)
15171517
{
1518-
const U8* send;
1519-
const U8* x = s;
1520-
15211518
PERL_ARGS_ASSERT_IS_UTF8_INVARIANT_STRING_LOC;
15221519

1520+
const U8* send = s + len;
1521+
const U8* x = s;
1522+
15231523
if (len == 0) {
15241524
len = strlen((const char *)s);
15251525
}
15261526

1527-
send = s + len;
15281527

15291528
#ifndef EBCDIC
15301529

0 commit comments

Comments
 (0)