Skip to content

Commit 1f17717

Browse files
committed
UTF8_CHK_SKIP: Remove redundancy
We don't have to do the MIN() because my_strnlen() returns the min anyway.
1 parent a170c88 commit 1f17717

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

utf8.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,8 +801,7 @@ C<L</UTF8_SAFE_SKIP>>, for example when interfacing with a C library.
801801
*/
802802

803803
#define UTF8_CHK_SKIP(s) \
804-
(UNLIKELY(s[0] == '\0') ? 1 : MIN(UTF8SKIP(s), \
805-
my_strnlen((char *) (s), UTF8SKIP(s))))
804+
(UNLIKELY(s[0] == '\0') ? 1 : my_strnlen((char *) (s), UTF8SKIP(s)))
806805
/*
807806
808807
=for apidoc Am|STRLEN|UTF8_SAFE_SKIP|char* s|char* e

0 commit comments

Comments
 (0)