summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2018-01-19 12:45:37 +0000
committerDavid Mitchell <davem@iabyn.com>2018-01-19 13:47:39 +0000
commitf0fd0980104d50d0db555dcafb3ff329e87cc3c7 (patch)
tree6391a7b7e59338256d496ee2b199977ed253f325 /pp.c
parent2b6a74a5a093ee46c821b978c1ca79a6a85722b1 (diff)
downloadperl-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pp.c b/pp.c
index 4b1ccbba80..d50ad7ddbf 100644
--- a/pp.c
+++ b/pp.c
@@ -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;
}