diff options
author | Karl Williamson <khw@cpan.org> | 2014-11-11 22:25:37 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2014-11-20 21:45:17 -0700 |
commit | 47e13f24847018e7947377141de64798abfa1ce9 (patch) | |
tree | db1ff966fdee5975456f1c95707f9210b8473551 /pad.c | |
parent | dd90e537d39b34eadaee8ce4df4561bd428f0f9d (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |