aboutsummaryrefslogtreecommitdiffstats
path: root/insns.def
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-20 06:59:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-20 06:59:28 +0000
commit7d9b37cc53b259ccbd9e8e5d4b9b068b7b1d5e2c (patch)
treec4b87ca4d84d6230c99d96940f376ba6d345076f /insns.def
parent90a9db6e6c04a4d82b8b032a83ed0e11e68b40d0 (diff)
downloadruby-7d9b37cc53b259ccbd9e8e5d4b9b068b7b1d5e2c.tar.gz
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
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def2
1 files changed, 1 insertions, 1 deletions
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 */