summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--iseq.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/iseq.c b/iseq.c
index f9a676b..598ce57 100644
--- a/iseq.c
+++ b/iseq.c
@@ -116,10 +116,10 @@ rb_iseq_free(const rb_iseq_t *iseq)
}
#if OPT_DIRECT_THREADED_CODE || OPT_CALL_THREADED_CODE
-static VALUE
+static int
rb_vm_insn_addr2insn2(const void *addr)
{
- VALUE insn;
+ int insn;
const void * const *table = rb_vm_get_insns_address_table();
for (insn = 0; insn < VM_INSTRUCTION_SIZE; insn++) {
@@ -131,14 +131,14 @@ rb_vm_insn_addr2insn2(const void *addr)
}
#endif
-static VALUE
+static int
rb_vm_insn_null_translator(const void *addr)
{
- return (VALUE)addr;
+ return (int)addr;
}
typedef void iseq_value_itr_t(void *ctx, VALUE obj);
-typedef VALUE rb_vm_insns_translator_t(const void *addr);
+typedef int rb_vm_insns_translator_t(const void *addr);
static int
iseq_extract_values(const VALUE *code, size_t pos, iseq_value_itr_t * func, void *data, rb_vm_insns_translator_t * translator)