Skip to content

Commit 90f96e7

Browse files
committed
toke.c: Add missing assert()
Somehow this got left out of the rebase for GH #23667
1 parent 6300137 commit 90f96e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

toke.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11568,7 +11568,8 @@ S_scan_inputsymbol(pTHX_ char *start)
1156811568
* 'len' == 1. So create a new macro that adds a conditional to skip the libc
1156911569
* call. */
1157011570
#define memEQ_1(a, b, len) \
11571-
((*(a) == *(b)) && ((LIKELY((len) <= 1) || memEQ((a)+1, (b)+1, (len)-1))))
11571+
(assert(len >= 1), (*(a) == *(b)) && ( (LIKELY((len) <= 1) \
11572+
|| memEQ((a)+1, (b)+1, (len)-1))))
1157211573

1157311574
/* scan_str
1157411575
takes:

0 commit comments

Comments
 (0)