summaryrefslogtreecommitdiff
path: root/vm_insnhelper.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm_insnhelper.h')
-rw-r--r--vm_insnhelper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_insnhelper.h b/vm_insnhelper.h
index 195313c..804f92a 100644
--- a/vm_insnhelper.h
+++ b/vm_insnhelper.h
@@ -54,7 +54,7 @@ RUBY_SYMBOL_EXPORT_END
#define VM_REG_EP (VM_REG_CFP->ep)
#define RESTORE_REGS() do { \
- VM_REG_CFP = th->ec->cfp; \
+ VM_REG_CFP = ec->cfp; \
} while (0)
#define REG_A reg_a
@@ -129,7 +129,7 @@ enum vm_regan_acttype {
/**********************************************************/
#define CALL_METHOD(calling, ci, cc) do { \
- VALUE v = (*(cc)->call)(th->ec, GET_CFP(), (calling), (ci), (cc)); \
+ VALUE v = (*(cc)->call)(ec, GET_CFP(), (calling), (ci), (cc)); \
if (v == Qundef) { \
RESTORE_REGS(); \
NEXT_INSN(); \