summaryrefslogtreecommitdiff
path: root/pp_pack.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-03-25 13:09:09 -0600
committerKarl Williamson <public@khwilliamson.com>2013-09-10 21:02:58 -0600
commit6f2d5cbcfe6275cad930b63e81bfd159b3964944 (patch)
treee0394a94a69d8e3922dffab69c5ea80399aef261 /pp_pack.c
parentc11b1469027c6226458c10ea61522ddcdbee226c (diff)
downloadperl-6f2d5cbcfe6275cad930b63e81bfd159b3964944.tar.gz
Use separate macros for byte vs uv Unicode
This removes a macro not yet even in a development release, and splits its calls into two classes: those where the input is a byte; and those where it can be any unsigned integer. The byte implementation avoids a function call on EBCDIC platforms.
Diffstat (limited to 'pp_pack.c')
-rw-r--r--pp_pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_pack.c b/pp_pack.c
index 588e448f33..3c4e373d23 100644
--- a/pp_pack.c
+++ b/pp_pack.c
@@ -2003,7 +2003,7 @@ marked_upgrade(pTHX_ SV *sv, tempsym_t *sym_ptr) {
from_start = SvPVX_const(sv);
from_end = from_start + SvCUR(sv);
for (from_ptr = from_start; from_ptr < from_end; from_ptr++)
- if (!NATIVE_IS_INVARIANT(*from_ptr)) break;
+ if (!NATIVE_BYTE_IS_INVARIANT(*from_ptr)) break;
if (from_ptr == from_end) {
/* Simple case: no character needs to be changed */
SvUTF8_on(sv);