summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2012-03-24 00:27:52 +0100
committerFather Chrysostomos <sprout@cpan.org>2012-05-21 17:51:53 -0700
commitfcb8da00bbf96c055c5bfb9ae7a8086051c6f3b0 (patch)
tree3e421dfcf21ae11f9cbec090dc0d29ee37974264 /proto.h
parent803e7e8145a1acab70f0b5356329b191cfc8ccd9 (diff)
downloadperl-fcb8da00bbf96c055c5bfb9ae7a8086051c6f3b0.tar.gz
[rt #111730] don't use I32 for offsets in vec()
do_vecset() do_vecget() used I32 for the offset, which meant that offsets outside the -2Gb - +2Gb offset were truncated, resulting in various misbehaviours.
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto.h b/proto.h
index eab2626584..f9327bb937 100644
--- a/proto.h
+++ b/proto.h
@@ -893,7 +893,7 @@ PERL_CALLCONV I32 Perl_do_trans(pTHX_ SV* sv)
#define PERL_ARGS_ASSERT_DO_TRANS \
assert(sv)
-PERL_CALLCONV UV Perl_do_vecget(pTHX_ SV* sv, I32 offset, I32 size)
+PERL_CALLCONV UV Perl_do_vecget(pTHX_ SV* sv, SSize_t offset, int size)
__attribute__nonnull__(pTHX_1);
#define PERL_ARGS_ASSERT_DO_VECGET \
assert(sv)