summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-07-26 11:01:15 +0100
committerNicholas Clark <nick@ccl4.org>2009-07-26 11:01:15 +0100
commitbd0ab00df494c0f393ee5623b3a949ae9e0ae15e (patch)
treedee895e936bbe9265c07d55f96a6af7bb0883a04 /toke.c
parentfc46f0f6acf947702bfc9ac32e05b1f4e8f4c720 (diff)
downloadperl-bd0ab00df494c0f393ee5623b3a949ae9e0ae15e.tar.gz
Tidy code added in 4ba71d51f72efb2af8dc9748dd62219261f2e1fd.
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/toke.c b/toke.c
index 56e9620c69..658d163fcd 100644
--- a/toke.c
+++ b/toke.c
@@ -4001,11 +4001,10 @@ Perl_yylex(pTHX)
do {
bool baduni = FALSE;
if (*d1 == 'C') {
- const char *d2 = d1;
- d2++;
- parse_unicode_opts( (const char **)&d2 )
- == PL_unicode
- || (baduni = TRUE);
+ const char *d2 = d1 + 1;
+ if (parse_unicode_opts((const char **)&d2)
+ != PL_unicode)
+ baduni = TRUE;
}
if (baduni || *d1 == 'M' || *d1 == 'm') {
const char * const m = d1;