aboutsummaryrefslogtreecommitdiffstats
path: root/vm_backtrace.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-29 07:15:30 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-29 07:15:30 +0000
commite8af0046b72bb5a1da549a90888b445525d6cfff (patch)
tree71a40a84adee7e1c368dc404d1b563fdf0755bbe /vm_backtrace.c
parent585ac7f1a2a1e96460cc78e050d2700d2e2680e5 (diff)
downloadruby-e8af0046b72bb5a1da549a90888b445525d6cfff.tar.gz
* vm_backtrace.c (rb_debug_inspector_open): use RARRAY_LENINT() for
int variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_backtrace.c')
-rw-r--r--vm_backtrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_backtrace.c b/vm_backtrace.c
index a87cbc9fb2..de429ab44e 100644
--- a/vm_backtrace.c
+++ b/vm_backtrace.c
@@ -931,7 +931,7 @@ rb_debug_inspector_open(rb_debug_inspector_func_t func, void *data)
dbg_context.th = th;
dbg_context.cfp = dbg_context.th->cfp;
dbg_context.backtrace = vm_backtrace_location_ary(th, 0, 0);
- dbg_context.backtrace_size = RARRAY_LEN(dbg_context.backtrace);
+ dbg_context.backtrace_size = RARRAY_LENINT(dbg_context.backtrace);
dbg_context.contexts = collect_caller_bindings(th);
TH_PUSH_TAG(th);