1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
ko1 2012-11-29 01:26:38 +00:00
parent d1dfebc05a
commit d7ab6820b5
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Thu Nov 29 10:24:25 2012 Koichi Sasada <ko1@atdot.net>
* vm_backtrace.c: use `long' for return values of `NUM2LONG()'.
Thu Nov 29 09:52:08 2012 NARUSE, Yui <naruse@ruby-lang.org>
* thread.c (do_select): suppress warning (uninitialized value warning)

View file

@ -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);