Skip to content

Commit 2001bed

Browse files
committed
S_unexpected_non_continuation_text: Move ARGS_ASSERT
to the top of the function. It was only further down because we were on C89.
1 parent f473fbe commit 2001bed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utf8.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,8 @@ S_unexpected_non_continuation_text(pTHX_ const U8 * const s,
956956
/* How many bytes should there be? */
957957
const STRLEN expect_len)
958958
{
959+
PERL_ARGS_ASSERT_UNEXPECTED_NON_CONTINUATION_TEXT;
960+
959961
/* Return the malformation warning text for an unexpected continuation
960962
* byte. */
961963

@@ -966,8 +968,6 @@ S_unexpected_non_continuation_text(pTHX_ const U8 * const s,
966968
const U8 * x = s + non_cont_byte_pos;
967969
const U8 * e = s + print_len;
968970

969-
PERL_ARGS_ASSERT_UNEXPECTED_NON_CONTINUATION_TEXT;
970-
971971
/* We don't need to pass this parameter, but since it has already been
972972
* calculated, it's likely faster to pass it; verify under DEBUGGING */
973973
assert(expect_len == UTF8SKIP(s));

0 commit comments

Comments
 (0)