summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2014-01-01 09:52:55 -0700
committerKarl Williamson <public@khwilliamson.com>2014-01-01 11:50:37 -0700
commitf3943cf2ca1b7a02583ef8bbeb1ced9414bf1fac (patch)
treed654fb43eeefdfecfc48e0cc9caa2ca2e8ad8c3e /pp.c
parent4f6386b6c255e97472036daac543efef3399b495 (diff)
downloadperl-f3943cf2ca1b7a02583ef8bbeb1ced9414bf1fac.tar.gz
pp.c: Remove unnecessary mask operation.
An unsigned character (U8) should not have more than 8 bits of data, so no need to force that by masking with 0xFF.
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index d626df5f7e..6925f496a1 100644
--- a/pp.c
+++ b/pp.c
@@ -3330,7 +3330,7 @@ PP(pp_ord)
XPUSHu(DO_UTF8(argsv)
? utf8n_to_uvchr(s, len, 0, UTF8_ALLOW_ANYUV)
- : (UV)(*s & 0xff));
+ : (UV)(*s));
RETURN;
}