Skip to content

Commit

Permalink
Might as well call valid_identifier_pve() directly since we already k…
Browse files Browse the repository at this point in the history
…now pv and len
  • Loading branch information
leonerd committed Nov 23, 2024
1 parent 49b9a0b commit de8c628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toke.c
Original file line number Diff line number Diff line change
Expand Up @@ -14028,7 +14028,7 @@ Perl_valid_identifier_sv(pTHX_ SV *sv)

STRLEN len;
const char *pv = SvPV_const(sv, len);
return valid_identifier_pvn(pv, len, SvUTF8(sv));
return valid_identifier_pve(pv, pv + len, SvUTF8(sv));
}

/*
Expand Down

0 comments on commit de8c628

Please sign in to comment.