diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-28 09:02:19 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-28 09:02:19 +0000 |
commit | 616f2c43c6e3693957cbecfbfbf9134163c88ef8 (patch) | |
tree | ec07de79beb6be2f85c108dde305bf00586f6096 /include | |
parent | 43ce5ce1b46707bdd0e5a8a3a7b536530da6d7fa (diff) | |
download | ruby-616f2c43c6e3693957cbecfbfbf9134163c88ef8.tar.gz |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/debug.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 */ |