From 7d9b37cc53b259ccbd9e8e5d4b9b068b7b1d5e2c Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 20 Jun 2014 06:59:28 +0000 Subject: insns.def: avoid type-punned pointer cast * insns.def (once), vm_insnhelper.c (vm_once_exec): turn the parameter into a VALUE to get rid of type-punned pointer cast. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_insnhelper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vm_insnhelper.c') diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 2a6ad6deeb..64e58f0842 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -2397,9 +2397,9 @@ vm_make_proc_with_iseq(rb_iseq_t *blockiseq) } static VALUE -vm_once_exec(rb_iseq_t *iseq) +vm_once_exec(VALUE iseq) { - VALUE proc = vm_make_proc_with_iseq(iseq); + VALUE proc = vm_make_proc_with_iseq((rb_iseq_t *)iseq); return rb_proc_call_with_block(proc, 0, 0, Qnil); } -- cgit v1.2.3