diff options
author | Father Chrysostomos <sprout@cpan.org> | 2013-07-21 06:56:07 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2013-07-23 14:55:13 -0700 |
commit | ab0894e548ee5755214913c09ee98d7335bcb698 (patch) | |
tree | 6e38245438697a217cfac47ca36ce955c521a282 /sv.c | |
parent | 6174b39a88cd48740c024cfb6035edb6ffed9f2d (diff) | |
download | perl-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.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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/ |