summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-01-05 06:44:27 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-01-05 06:44:27 +0000
commitfd400ab9029cac48f6054d57b59a99ec1c5d5e1e (patch)
tree48c21ddf1f8c4aa55b33343393a2bf6d75524a0c /sv.c
parentf5cf745e299cac34ef186d2d2d056e876998ccb2 (diff)
downloadperl-fd400ab9029cac48f6054d57b59a99ec1c5d5e1e.tar.gz
UTF-8 cleanup.
p4raw-id: //depot/perl@8328
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sv.c b/sv.c
index 139d98acca..c4935d8311 100644
--- a/sv.c
+++ b/sv.c
@@ -2945,7 +2945,7 @@ Perl_sv_utf8_upgrade(pTHX_ register SV *sv)
e = SvEND(sv);
t = s;
while (t < e) {
- if ((hibit = *t++ & 0x80))
+ if ((hibit = UTF8_IS_CONTINUED(*t++)))
break;
}
@@ -3037,7 +3037,7 @@ Perl_sv_utf8_decode(pTHX_ register SV *sv)
return FALSE;
e = SvEND(sv);
while (c < e) {
- if (*c++ & 0x80) {
+ if (UTF8_IS_CONTINUED(*c++)) {
SvUTF8_on(sv);
break;
}