summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-28 11:02:16 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-28 11:02:16 +0000
commitc12897cbea435f39ceef1e26be2676835aa02d04 (patch)
treee64b3b5004eb99ede7d95634f05a1bc5459a5b22 /vm.c
parent874d6b329ec85d9109e79e3caca4ab15a4ec0638 (diff)
* vm.c (REWIND_CFP): use `ec` directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/vm.c b/vm.c
index cd170441ac..0d62cb6f1f 100644
--- a/vm.c
+++ b/vm.c
@@ -2617,12 +2617,12 @@ vm_define_method(rb_thread_t *th, VALUE obj, ID id, VALUE iseqval, int is_single
}
#define REWIND_CFP(expr) do { \
- rb_thread_t *th__ = GET_THREAD(); \
- VALUE *const curr_sp = (th__->ec->cfp++)->sp; \
- VALUE *const saved_sp = th__->ec->cfp->sp; \
- th__->ec->cfp->sp = curr_sp; \
+ rb_execution_context_t *ec__ = GET_EC(); \
+ VALUE *const curr_sp = (ec__->cfp++)->sp; \
+ VALUE *const saved_sp = ec__->cfp->sp; \
+ ec__->cfp->sp = curr_sp; \
expr; \
- (th__->ec->cfp--)->sp = saved_sp; \
+ (ec__->cfp--)->sp = saved_sp; \
} while (0)
static VALUE