ruby-changes:38472
From: naruse <ko1@a...>
Date: Wed, 20 May 2015 11:24:34 +0900 (JST)
Subject: [ruby-changes:38472] naruse:r50553 (trunk): * vm_dump.c (rb_print_backtrace): return value of libexec's backtrace
naruse 2015-05-20 11:24:17 +0900 (Wed, 20 May 2015) New Revision: 50553 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50553 Log: * vm_dump.c (rb_print_backtrace): return value of libexec's backtrace is size_t, so simply cast as int. Modified files: trunk/ChangeLog trunk/vm_dump.c Index: ChangeLog =================================================================== --- ChangeLog (revision 50552) +++ ChangeLog (revision 50553) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed May 20 11:23:24 2015 NARUSE, Yui <naruse@r...> + + * 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@r...> * iseq.c (rb_iseq_compile_with_option): check source type, must be Index: vm_dump.c =================================================================== --- vm_dump.c (revision 50552) +++ vm_dump.c (revision 50553) @@ -690,7 +690,7 @@ rb_print_backtrace(void) https://github.com/ruby/ruby/blob/trunk/vm_dump.c#L690 #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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/