Skip to content

Commit 710a06e

Browse files
committed
S_parse_ident: Swap order of conditionals
I don't know what I was thinking when I recently thought these needed to be in a different order. The conjuctions are all &&, so might as well do the simpler things first
1 parent 1056171 commit 710a06e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

toke.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10604,8 +10604,8 @@ S_parse_ident(pTHX_ const char *s, const char * const s_end,
1060410604
* Unicode definition only when UTF-8 is in effect. We have to check
1060510605
* for the subset before checking for the superset. */
1060610606
Size_t advance;
10607-
if ( (advance = isIDFIRST_lazy_if_safe(s, s_end, is_utf8))
10608-
&& (is_utf8 || idfirst_only))
10607+
if ( (is_utf8 || idfirst_only)
10608+
&& (advance = isIDFIRST_lazy_if_safe(s, s_end, is_utf8)))
1060910609
{
1061010610
const char *this_start = s;
1061110611
s += advance;

0 commit comments

Comments
 (0)