summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-11-29 03:06:30 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-11-29 03:06:30 +0000
commit2e4dc9fc3f643d91ce923f3b065a55e7a020e3a4 (patch)
tree1d9d4d420fecba45f82546d6b6986f20f0405daa /utf8.c
parent6f149447298e87ab4470e9b05cfcd08d11db1834 (diff)
downloadperl-2e4dc9fc3f643d91ce923f3b065a55e7a020e3a4.tar.gz
This should have been part of #7872: no need to scan UTF-8
until eternity. p4raw-id: //depot/perl@7911
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utf8.c b/utf8.c
index 3bbfdf17fa..48c772db52 100644
--- a/utf8.c
+++ b/utf8.c
@@ -350,7 +350,7 @@ returned and retlen is set, if possible, to -1.
UV
Perl_utf8_to_uv_simple(pTHX_ U8* s, STRLEN* retlen)
{
- return Perl_utf8_to_uv(aTHX_ s, (STRLEN)-1, retlen, 0);
+ return Perl_utf8_to_uv(aTHX_ s, UTF8_MAXLEN, retlen, 0);
}
/*