diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-10 09:52:21 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-10 09:52:21 +0000 |
commit | 3ead5dcfb461a1ae8d7f48cbee408e1478783153 (patch) | |
tree | 4a583ccce286347f7fb28a8003ef89b8535aa9fe /eval.c | |
parent | a6e3d19f3ac344613da68dff705fb411d9120d63 (diff) | |
download | ruby-3ead5dcfb461a1ae8d7f48cbee408e1478783153.tar.gz |
* eval.c (exec_under): add proper casts.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1813,8 +1813,8 @@ exec_under(VALUE (*func) (VALUE), VALUE under, VALUE self, VALUE args) cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(cfp); } - stored_cref = vm_cfp_svar_get(th, cfp, -1); - vm_cfp_svar_set(th, cfp, -1, vm_cref_push(th, under, NOEX_PUBLIC)); + stored_cref = (NODE *)vm_cfp_svar_get(th, cfp, (VALUE)-1); + vm_cfp_svar_set(th, cfp, (VALUE)-1, (VALUE)vm_cref_push(th, under, NOEX_PUBLIC)); PUSH_TAG(); if ((state = EXEC_TAG()) == 0) { @@ -1823,7 +1823,7 @@ exec_under(VALUE (*func) (VALUE), VALUE under, VALUE self, VALUE args) POP_TAG(); /* restore environment */ - vm_cfp_svar_set(th, cfp, -1, stored_cref); + vm_cfp_svar_set(th, cfp, (VALUE)-1, (VALUE)stored_cref); pcfp->self = stored_self; if (state) { |