summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-04-06 12:29:07 -0600
committerKarl Williamson <khw@cpan.org>2019-04-10 09:14:22 -0600
commitf66d79a78297dbaacfbed2494502bffbba564f8e (patch)
tree1db6f38e152ba787596b1030b09ef5c3b4505c0a /toke.c
parent3fb2d8201ab53c5527725c33b85176ee4f51358f (diff)
downloadperl-f66d79a78297dbaacfbed2494502bffbba564f8e.tar.gz
toke.c: Use local variable instead of global
These two lines used a PL_ variable, whereas every other use in this function is a local copy of it. Change for consistency.
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toke.c b/toke.c
index 30bdf325d5..4f0fe67034 100644
--- a/toke.c
+++ b/toke.c
@@ -3534,7 +3534,7 @@ S_scan_const(pTHX_ char *start)
{
const char* error;
- bool valid = grok_bslash_o(&s, PL_bufend,
+ bool valid = grok_bslash_o(&s, send,
&uv, &error,
TRUE, /* Output warning */
FALSE, /* Not strict */
@@ -3553,7 +3553,7 @@ S_scan_const(pTHX_ char *start)
{
const char* error;
- bool valid = grok_bslash_x(&s, PL_bufend,
+ bool valid = grok_bslash_x(&s, send,
&uv, &error,
TRUE, /* Output warning */
FALSE, /* Not strict */