summaryrefslogtreecommitdiff
path: root/template/insns_info.inc.tmpl
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-21 20:58:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-21 20:58:26 +0000
commitfe1ce93f52827f59c069247a6e5998c3a5f907b8 (patch)
treedc68c377c5347844138e9aa22610ee815677a7a4 /template/insns_info.inc.tmpl
parent2c34b66e24f1992e2ceca0b8a8f3d710f05f21ae (diff)
* compile.c, cont.c, gc.c, insns.def, iseq.c, iseq.h, process.c,
thread.c, vm.c, vm_core.h, vm_dump.c, vm_eval.c, vm_insnhelper.c, vm_method.c, template/insns_info.inc.tmpl, tool/instruction.rb: fixed types. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template/insns_info.inc.tmpl')
-rw-r--r--template/insns_info.inc.tmpl20
1 files changed, 10 insertions, 10 deletions
diff --git a/template/insns_info.inc.tmpl b/template/insns_info.inc.tmpl
index 1093e10..110e6b5 100644
--- a/template/insns_info.inc.tmpl
+++ b/template/insns_info.inc.tmpl
@@ -49,29 +49,29 @@ insn_stack_increase(int depth, int insn, VALUE *opes)
/* some utilities */
static int
-insn_len(int insn)
+insn_len(VALUE insn)
{
- return insn_len_info[insn];
+ return insn_len_info[(int)insn];
}
static const char *
-insn_name(int insn)
+insn_name(VALUE insn)
{
- return insn_name_info[insn];
+ return insn_name_info[(int)insn];
}
static const char *
-insn_op_types(int insn)
+insn_op_types(VALUE insn)
{
- return insn_operand_info[insn];
+ return insn_operand_info[(int)insn];
}
static int
-insn_op_type(int insn, int pos)
+insn_op_type(VALUE insn, long pos)
{
int len = insn_len(insn) - 1;
if(pos < len){
- return insn_operand_info[insn][pos];
+ return insn_operand_info[(int)insn][pos];
}
else{
return 0;
@@ -80,9 +80,9 @@ insn_op_type(int insn, int pos)
#ifdef USE_INSN_RET_NUM
static int
-insn_ret_num(int insn)
+insn_ret_num(VALUE insn)
{
- return insn_stack_push_num_info[insn];
+ return insn_stack_push_num_info[(int)insn];
}
#endif