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

* vm_dump.c (rb_print_backtrace): return value of libexec's backtrace

is size_t, so simply cast as int.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2015-05-20 02:24:17 +00:00
parent 9e80fb0751
commit dd9265ecf3
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Wed May 20 11:23:24 2015 NARUSE, Yui <naruse@ruby-lang.org>
* vm_dump.c (rb_print_backtrace): return value of libexec's backtrace
is size_t, so simply cast as int.
Tue May 19 18:54:41 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* iseq.c (rb_iseq_compile_with_option): check source type, must be

View file

@ -690,7 +690,7 @@ rb_print_backtrace(void)
#if HAVE_BACKTRACE
#define MAX_NATIVE_TRACE 1024
static void *trace[MAX_NATIVE_TRACE];
int n = backtrace(trace, MAX_NATIVE_TRACE);
int n = (int)backtrace(trace, MAX_NATIVE_TRACE);
#if defined(USE_ELF) && defined(HAVE_DLADDR)
rb_dump_backtrace_with_lines(n, trace);
#else