summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-07-21 06:56:07 -0700
committerFather Chrysostomos <sprout@cpan.org>2013-07-23 14:55:13 -0700
commitab0894e548ee5755214913c09ee98d7335bcb698 (patch)
tree6e38245438697a217cfac47ca36ce955c521a282 /sv.c
parent6174b39a88cd48740c024cfb6035edb6ffed9f2d (diff)
downloadperl-ab0894e548ee5755214913c09ee98d7335bcb698.tar.gz
sv.c: Remove overflow check in utf8 length cache
In order to make large values of pos() possible, the previous commit enlarged the mg_len field of the magic struct. That field is also used for cached utf8 length values. Since it is now large enough to store any length the OS/compiler supports, the overflow never happens.
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sv.c b/sv.c
index 86e5459bad..56cc81eef1 100644
--- a/sv.c
+++ b/sv.c
@@ -7093,9 +7093,6 @@ S_utf8_mg_len_cache_update(pTHX_ SV *const sv, MAGIC **const mgp,
assert(*mgp);
(*mgp)->mg_len = ulen;
- /* For now, treat "overflowed" as "still unknown". See RT #72924. */
- if (ulen != (STRLEN) (*mgp)->mg_len)
- (*mgp)->mg_len = -1;
}
/* Create and update the UTF8 magic offset cache, with the proffered utf8/