summaryrefslogtreecommitdiff
path: root/pad.c
diff options
context:
space:
mode:
authorEric Brine\" (via RT) <perlbug-followup@perl.org>2012-11-13 02:42:47 -0800
committerKarl Williamson <public@khwilliamson.com>2012-11-13 08:15:16 -0700
commita56015b9dc044df9d25d61522b810c3a5043b5df (patch)
tree17a87976117613214fb2fb066d136176217749c0 /pad.c
parentf432c75f5f87003846b8a1bbad5a0ced394cfbf5 (diff)
downloadperl-a56015b9dc044df9d25d61522b810c3a5043b5df.tar.gz
Silence two build warnings on systems where ivsize > ptrsize.
# New Ticket Created by "Eric Brine" # Please include the string: [perl #115710] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=115710 > This is a bug report for perl from ikegami@adaelis.com, generated with the help of perlbug 1.39 running under perl 5.14.2. ----------------------------------------------------------------- [Please describe your issue here] Attached patch silences two build warnings on systems where ivsize > ptrsize. They are safe to ignore, a side-effect of a function with a polymorphic interface. cv = find_runcv_where(FIND_RUNCV_level_eq, iv, NULL); cv = find_runcv_where(FIND_RUNCV_padid_eq, PTR2IV(p), NULL); // p is a PADNAMELIST* [Please do not change anything below this line] -----------------------------------------------------------------
Diffstat (limited to 'pad.c')
-rw-r--r--pad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pad.c b/pad.c
index 2292aaf9b5..cc34ade378 100644
--- a/pad.c
+++ b/pad.c
@@ -1999,7 +1999,7 @@ S_cv_clone_pad(pTHX_ CV *proto, CV *cv, CV *outside)
|| PadlistNAMES(CvPADLIST(outside))
!= protopadlist->xpadl_outid) {
outside = find_runcv_where(
- FIND_RUNCV_padid_eq, (IV)protopadlist->xpadl_outid, NULL
+ FIND_RUNCV_padid_eq, PTR2IV(protopadlist->xpadl_outid), NULL
);
/* outside could be null */
}