From 80544570ce886c65d20c02831f86aafecd94c2d9 Mon Sep 17 00:00:00 2001 From: Robin Barker Date: Wed, 11 Jul 2012 00:29:56 +0100 Subject: [PATCH] silence compiler warning - casting void* to IV This warns when void* and IV have different sizes There is already a macro to do this conversion cleanly: PTR2IV --- pp_ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pp_ctl.c b/pp_ctl.c index 54f17ae..826a772 100644 --- a/pp_ctl.c +++ b/pp_ctl.c @@ -3279,7 +3279,7 @@ Perl_find_runcv_where(pTHX_ U8 cond, void *arg, U32 *db_seqp) if (CvROOT(cv) != (OP *)arg) continue; return cv; case FIND_RUNCV_level_eq: - if (level++ != (IV)arg) continue; + if (level++ != PTR2IV(arg)) continue; /* GERONIMO! */ default: return cv; -- 2.7.4