From f0feb466830b0a22719e82175d819093f785b375 Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Sun, 1 Sep 2013 14:51:29 -0700 Subject: [PATCH] =?utf8?q?toke.c:scan=5Fconst:=20Don=E2=80=99t=20use=20PL?= =?utf8?q?=5Fbufptr?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit PL_bufptr is passed in as an argument, yet scan_const was some- times looking at its argument (start) and sometimes using PL_bufptr directly. This is just confusing. --- toke.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toke.c b/toke.c index 31eefea..d6df9ed 100644 --- a/toke.c +++ b/toke.c @@ -3855,8 +3855,8 @@ S_scan_const(pTHX_ char *start) } /* return the substring (via pl_yylval) only if we parsed anything */ - if (s > PL_bufptr) { - char *s2 = PL_bufptr; + if (s > start) { + char *s2 = start; for (; s2 < s; s2++) { if (*s2 == '\n') COPLINE_INC_WITH_HERELINES; -- 2.7.4