summaryrefslogtreecommitdiff
path: root/vm_backtrace.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-29 01:30:42 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-29 01:30:42 +0000
commitf22f1fbb54f7a2d3088205bf951d255f41f8f034 (patch)
tree60fd10677512e7a14cfe72ebf1a5d4cb433bdb4e /vm_backtrace.c
parentd7ab6820b589571f9a82246f6f4c96688d9fd824 (diff)
* vm_backtrace.c: same as a last patch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_backtrace.c')
-rw-r--r--vm_backtrace.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/vm_backtrace.c b/vm_backtrace.c
index 6d538f1..a15c533 100644
--- a/vm_backtrace.c
+++ b/vm_backtrace.c
@@ -465,7 +465,7 @@ rb_vm_backtrace_object(void)
}
static VALUE
-backtrace_collect(rb_backtrace_t *bt, int lev, int n, VALUE (*func)(rb_backtrace_location_t *, void *arg), void *arg)
+backtrace_collect(rb_backtrace_t *bt, long lev, long n, VALUE (*func)(rb_backtrace_location_t *, void *arg), void *arg)
{
VALUE btary;
int i;
@@ -491,7 +491,7 @@ location_to_str_dmyarg(rb_backtrace_location_t *loc, void *dmy)
}
static VALUE
-backtrace_to_str_ary(VALUE self, int lev, int n)
+backtrace_to_str_ary(VALUE self, long lev, long n)
{
rb_backtrace_t *bt;
int size;
@@ -534,7 +534,7 @@ location_create(rb_backtrace_location_t *srcloc, void *btobj)
}
static VALUE
-backtrace_to_location_ary(VALUE self, int lev, int n)
+backtrace_to_location_ary(VALUE self, long lev, long n)
{
rb_backtrace_t *bt;
int size;
@@ -568,13 +568,13 @@ backtrace_load_data(VALUE self, VALUE str)
}
VALUE
-vm_backtrace_str_ary(rb_thread_t *th, int lev, int n)
+vm_backtrace_str_ary(rb_thread_t *th, long lev, long n)
{
return backtrace_to_str_ary(backtrace_object(th), lev, n);
}
VALUE
-vm_backtrace_location_ary(rb_thread_t *th, int lev, int n)
+vm_backtrace_location_ary(rb_thread_t *th, long lev, long n)
{
return backtrace_to_location_ary(backtrace_object(th), lev, n);
}
@@ -717,7 +717,7 @@ vm_backtrace_to_ary(rb_thread_t *th, int argc, VALUE *argv, int lev_default, int
case Qfalse:
lev = NUM2LONG(level);
if (lev < 0) {
- rb_raise(rb_eArgError, "negative level (%d)", lev);
+ rb_raise(rb_eArgError, "negative level (%ld)", lev);
}
lev += lev_plus;
n = bt->backtrace_size - lev;
@@ -734,7 +734,7 @@ vm_backtrace_to_ary(rb_thread_t *th, int argc, VALUE *argv, int lev_default, int
case 2:
lev = NUM2LONG(level);
if (lev < 0) {
- rb_raise(rb_eArgError, "negative level (%d)", lev);
+ rb_raise(rb_eArgError, "negative level (%ld)", lev);
}
lev += lev_plus;
n = NUM2LONG(vn);