summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-03-09 18:08:52 +0000
committerNicholas Clark <nick@ccl4.org>2006-03-09 18:08:52 +0000
commitafaf3e61b3889243d7f17fcc2913733f1eaa4258 (patch)
tree4aa0935de04c142ca62909a2e7cd990ad3f9bec6 /toke.c
parent9ded7720f054021dc134360a11df36d0d7671457 (diff)
downloadperl-afaf3e61b3889243d7f17fcc2913733f1eaa4258.tar.gz
Refactoring from Larry implicit in the MAD patch.
p4raw-id: //depot/perl@27443
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/toke.c b/toke.c
index 7128c85ff3..f69f28a427 100644
--- a/toke.c
+++ b/toke.c
@@ -3171,13 +3171,14 @@ Perl_yylex(pTHX)
CopLINE_dec(PL_curcop);
incline(s);
}
- d = PL_bufend;
- while (s < d && *s != '\n')
- s++;
- if (s < d)
- s++;
- else if (s > d) /* Found by Ilya: feed random input to Perl. */
- Perl_croak(aTHX_ "panic: input overflow");
+ d = s;
+ while (d < PL_bufend && *d != '\n')
+ d++;
+ if (d < PL_bufend)
+ d++;
+ else if (d > PL_bufend) /* Found by Ilya: feed random input to Perl. */
+ Perl_croak(aTHX_ "panic: input overflow");
+ s = d;
incline(s);
if (PL_lex_formbrack && PL_lex_brackets <= PL_lex_formbrack) {
PL_bufptr = s;