diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-27 05:33:33 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-27 05:33:33 +0000 |
commit | f37049ec054763168691c9c6bd70c75f00cbf89e (patch) | |
tree | 7cb116e9bf7abd3f53190a8ccb7e91c30f244548 /vm_insnhelper.c | |
parent | 7267a79a7f702f785e88952bafe1eeb5176460b8 (diff) | |
download | ruby-f37049ec054763168691c9c6bd70c75f00cbf89e.tar.gz |
`ec` -> `th`
* vm_exec.h (VM_SP_CNT): accepts `ec` instead of `th`.
* vm_insnhelper.c (vm_stack_consistency_error): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 6c841bf55a..251102b6f6 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -3326,16 +3326,16 @@ vm_case_dispatch(CDHASH hash, OFFSET else_offset, VALUE key) } NORETURN(static void - vm_stack_consistency_error(rb_thread_t *, + vm_stack_consistency_error(const rb_execution_context_t *ec, const rb_control_frame_t *, const VALUE *)); static void -vm_stack_consistency_error(rb_thread_t *th, +vm_stack_consistency_error(const rb_execution_context_t *ec, const rb_control_frame_t *cfp, const VALUE *bp) { - const ptrdiff_t nsp = VM_SP_CNT(th, cfp->sp); - const ptrdiff_t nbp = VM_SP_CNT(th, bp); + const ptrdiff_t nsp = VM_SP_CNT(ec, cfp->sp); + const ptrdiff_t nbp = VM_SP_CNT(ec, bp); static const char stack_consistency_error[] = "Stack consistency error (sp: %"PRIdPTRDIFF", bp: %"PRIdPTRDIFF")"; #if defined RUBY_DEVEL |