Skip to content

Commit 81f75d0

Browse files
committed
parse_ident: Use constant when known.
We know the contents of *s here; it is a colon. Just use that instead of derefencing.
1 parent e75195e commit 81f75d0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

toke.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10643,8 +10643,9 @@ S_parse_ident(pTHX_ const char *s, const char * const s_end,
1064310643
goto too_long;
1064410644
}
1064510645

10646-
*(*d)++ = *s++;
10647-
*(*d)++ = *s++;
10646+
*(*d)++ = ':';
10647+
*(*d)++ = ':';
10648+
s += 2;
1064810649
}
1064910650
else /* None of the above means have come to the end of any
1065010651
identifier*/

0 commit comments

Comments
 (0)