summaryrefslogtreecommitdiff
path: root/pad.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2014-11-11 22:25:37 -0700
committerKarl Williamson <khw@cpan.org>2014-11-20 21:45:17 -0700
commit47e13f24847018e7947377141de64798abfa1ce9 (patch)
treedb1ff966fdee5975456f1c95707f9210b8473551 /pad.c
parentdd90e537d39b34eadaee8ce4df4561bd428f0f9d (diff)
downloadperl-47e13f24847018e7947377141de64798abfa1ce9.tar.gz
Make testing for PL_encoding into a macro
This is in preparation for making the test more complicated.
Diffstat (limited to 'pad.c')
-rw-r--r--pad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pad.c b/pad.c
index c9e16e55b9..0d37ddb5f7 100644
--- a/pad.c
+++ b/pad.c
@@ -167,7 +167,7 @@ sv_eq_pvn_flags(pTHX_ const SV *sv, const char* pv, const STRLEN pvlen, const U3
STRLEN cur1 = SvCUR(sv);
const char *pv2 = pv;
STRLEN cur2 = pvlen;
- if (PL_encoding) {
+ if (IN_ENCODING) {
SV* svrecode = NULL;
if (SvUTF8(sv)) {
svrecode = newSVpvn(pv2, cur2);