From 7d9b37cc53b259ccbd9e8e5d4b9b068b7b1d5e2c Mon Sep 17 00:00:00 2001
From: nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
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
---
 insns.def | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'insns.def')

diff --git a/insns.def b/insns.def
index eb5b4dec9e..679927b4e9 100644
--- a/insns.def
+++ b/insns.def
@@ -1250,7 +1250,7 @@ once
 	}
 	else if (is->once.running_thread == th) {
 	    /* recursive once */
-	    val = vm_once_exec(iseq);
+	    val = vm_once_exec((VALUE)iseq);
 	}
 	else {
 	    /* waiting for finish */
-- 
cgit v1.2.1

