diff options
author | David Mitchell <davem@iabyn.com> | 2018-01-19 12:45:37 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2018-01-19 13:47:39 +0000 |
commit | f0fd0980104d50d0db555dcafb3ff329e87cc3c7 (patch) | |
tree | 6391a7b7e59338256d496ee2b199977ed253f325 /pp.c | |
parent | 2b6a74a5a093ee46c821b978c1ca79a6a85722b1 (diff) | |
download | perl-f0fd0980104d50d0db555dcafb3ff329e87cc3c7.tar.gz |
tr///: return Size_t count rather than I32
Change the signature of all the internal do_trans*() functions to return
Size_t rather than I32, so that the count returned by tr//// can cope with
strings longer than 2Gb.
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -689,8 +689,8 @@ PP(pp_trans) PUSHs(newsv); } else { - I32 i = do_trans(sv); - mPUSHi(i); + Size_t i = do_trans(sv); + mPUSHi((UV)i); } RETURN; } |