Skip to content

Commit b015ed3

Browse files
committed
utf8.c: Change #define name
I have a better use for this name in mind; and this makes the name more specific
1 parent ac3e757 commit b015ed3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

utf8.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -723,15 +723,15 @@ S_does_utf8_overflow(const U8 * const s,
723723
/* The sequence \xff\x80\x80\x80\x80\x80\x80\x82 is an overlong that
724724
* evaluates to 2**31, so overflows an IV. For a UV it's
725725
* \xff\x80\x80\x80\x80\x80\x80\x83 = 2**32 */
726-
# define OVERFLOWS "\xff\x80\x80\x80\x80\x80\x80\x82"
726+
# define OVERFLOWS_MIN_STRING "\xff\x80\x80\x80\x80\x80\x80\x82"
727727

728-
if (e - s < (Ptrdiff_t) STRLENs(OVERFLOWS)) { /* Not enough info */
729-
return -1;
728+
if (e - s < (Ptrdiff_t) STRLENs(OVERFLOWS_MIN_STRING)) {
729+
return -1; /* Not enough info to be sure */
730730
}
731731

732732
# define strnGE(s1,s2,l) (strncmp(s1,s2,l) >= 0)
733733

734-
return strnGE((const char *) s, OVERFLOWS, STRLENs(OVERFLOWS));
734+
return (strnGE((const char *) s, OVERFLOWS_MIN_STRING, STRLENs(OVERFLOWS_MIN_STRING)));
735735

736736
#endif
737737

0 commit comments

Comments
 (0)