Skip to content

Commit 8094711

Browse files
committed
regcomp.c: Reorder cases in a switch
This is for a future commit where one will have extra work to do before falling through to the other.
1 parent 616fc31 commit 8094711

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

regcomp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10844,8 +10844,8 @@ S_parse_lparen_question_flags(pTHX_ RExC_state_t *pRExC_state)
1084410844
vFAIL2("Regexp modifier \"%c\" may not appear after the \"-\"",
1084510845
*(RExC_parse - 1));
1084610846
NOT_REACHED; /*NOTREACHED*/
10847-
case ONCE_PAT_MOD: /* 'o' */
1084810847
case GLOBAL_PAT_MOD: /* 'g' */
10848+
case ONCE_PAT_MOD: /* 'o' */
1084910849
if (ckWARN(WARN_REGEXP)) {
1085010850
const I32 wflagbit = *RExC_parse == 'o'
1085110851
? WASTED_O

0 commit comments

Comments
 (0)