Skip to content

Commit

Permalink
[tosquash] s > end cannot happen; remove the test for it
Browse files Browse the repository at this point in the history
  • Loading branch information
leonerd committed Nov 23, 2024
1 parent 2e28331 commit 071d70c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions toke.c
Original file line number Diff line number Diff line change
Expand Up @@ -13963,7 +13963,7 @@ Perl_valid_identifier_pvn(pTHX_ const char *s, STRLEN len, U32 flags)
s += UTF8SKIP((U8 *)s);
if(s == end)
break;
if(s > end || !isIDCONT_utf8_safe((U8 *)s, (U8 *)end))
if(!isIDCONT_utf8_safe((U8 *)s, (U8 *)end))
return false;
}
return true;
Expand All @@ -13976,7 +13976,7 @@ Perl_valid_identifier_pvn(pTHX_ const char *s, STRLEN len, U32 flags)
s += 1;
if(s == end)
break;
if(s > end || !isIDCONT(s[0]))
if(!isIDCONT(s[0]))
return false;
}
return true;
Expand Down

0 comments on commit 071d70c

Please sign in to comment.