From 616f2c43c6e3693957cbecfbfbf9134163c88ef8 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 28 Jan 2013 09:02:19 +0000 Subject: vm_backtrace.c: use long * vm_backtrace.c (rb_debug_inspector_frame_{class,binding,iseq}_get): use long as index as well as RARRAY_LEN(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/debug.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/ruby/debug.h b/include/ruby/debug.h index 855aba88ce..3cdf60a754 100644 --- a/include/ruby/debug.h +++ b/include/ruby/debug.h @@ -31,9 +31,9 @@ typedef struct rb_debug_inspector_struct rb_debug_inspector_t; typedef VALUE (*rb_debug_inspector_func_t)(const rb_debug_inspector_t *, void *); VALUE rb_debug_inspector_open(rb_debug_inspector_func_t func, void *data); -VALUE rb_debug_inspector_frame_binding_get(const rb_debug_inspector_t *dc, int index); -VALUE rb_debug_inspector_frame_class_get(const rb_debug_inspector_t *dc, int index); -VALUE rb_debug_inspector_frame_iseq_get(const rb_debug_inspector_t *dc, int index); +VALUE rb_debug_inspector_frame_binding_get(const rb_debug_inspector_t *dc, long index); +VALUE rb_debug_inspector_frame_class_get(const rb_debug_inspector_t *dc, long index); +VALUE rb_debug_inspector_frame_iseq_get(const rb_debug_inspector_t *dc, long index); VALUE rb_debug_inspector_backtrace_locations(const rb_debug_inspector_t *dc); /* Old style set_trace_func APIs */ -- cgit v1.2.3