diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-20 06:59:28 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-20 06:59:28 +0000 |
commit | 7d9b37cc53b259ccbd9e8e5d4b9b068b7b1d5e2c (patch) | |
tree | c4b87ca4d84d6230c99d96940f376ba6d345076f /insns.def | |
parent | 90a9db6e6c04a4d82b8b032a83ed0e11e68b40d0 (diff) | |
download | ruby-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.def | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |