summaryrefslogtreecommitdiff
path: root/vm_backtrace.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-29 01:26:38 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-29 01:26:38 +0000
commitd7ab6820b589571f9a82246f6f4c96688d9fd824 (patch)
treee78cd1e71f030751c7aa850a7a14627fb2ff6c3f /vm_backtrace.c
parentd1dfebc05a0af85d6dac21038662a794464ff0e8 (diff)
* vm_backtrace.c: use `long' for return values of `NUM2LONG()'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37961 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 5b4ed10..6d538f1 100644
--- a/vm_backtrace.c
+++ b/vm_backtrace.c
@@ -698,7 +698,7 @@ static VALUE
vm_backtrace_to_ary(rb_thread_t *th, int argc, VALUE *argv, int lev_default, int lev_plus, int to_str)
{
VALUE level, vn;
- int lev, n;
+ long lev, n;
VALUE btval = backtrace_object(th);
rb_backtrace_t *bt;
GetCoreDataFromValue(btval, rb_backtrace_t, bt);