summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorArtur Bergman <sky@nanisky.com>2001-09-10 11:17:25 +0000
committerArtur Bergman <sky@nanisky.com>2001-09-10 11:17:25 +0000
commitba89bb6e6103c86c9d65d9485052b0ba8db5d064 (patch)
treefd458cc1b02e25912d416638457673d5b41abaf2 /perl.c
parentb7cb320da5fba9d13ff80cbaf19179dae7debe95 (diff)
downloadperl-ba89bb6e6103c86c9d65d9485052b0ba8db5d064.tar.gz
Apply INT2PTR with force to silence warnings from
PM_GETRE and friends. No more warnings with 64bit IVs and 32bit pointers. p4raw-id: //depot/perl@11970
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index e19ea45857..510a5ed445 100644
--- a/perl.c
+++ b/perl.c
@@ -470,7 +470,7 @@ perl_destruct(pTHXx)
while (i) {
SV *resv = ary[--i];
- REGEXP *re = (REGEXP *)SvIVX(resv);
+ REGEXP *re = INT2PTR(REGEXP *,SvIVX(resv));
if (SvFLAGS(resv) & SVf_BREAK) {
/* this is PL_reg_curpm, already freed