From 4c3e84f3090c9cc68d352a2c80a95c91d25a8fc7 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Mon, 13 Feb 2017 19:12:31 -0700 Subject: toke.c: Un-special case something By refactoring slightly, we make this code in a switch statement have the same entrance and exit invariants as the other cases, so they all can be handled uniformly at the end of the switch. --- toke.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toke.c') diff --git a/toke.c b/toke.c index 880ac53b7d..547e67ae5a 100644 --- a/toke.c +++ b/toke.c @@ -3934,7 +3934,7 @@ S_scan_const(pTHX_ char *start) case 'c': s++; if (s < send) { - *d++ = grok_bslash_c(*s++, 1); + *d++ = grok_bslash_c(*s, 1); } else { yyerror("Missing control char name in \\c"); @@ -3942,7 +3942,7 @@ S_scan_const(pTHX_ char *start) #ifdef EBCDIC non_portable_endpoint++; #endif - continue; + break; /* printf-style backslashes, formfeeds, newlines, etc */ case 'b': -- cgit v1.2.1