summaryrefslogtreecommitdiff
path: root/vm_dump.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-20 02:24:17 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-20 02:24:17 (GMT)
commitdd9265ecf3af52e750bee8300ad447110f300240 (patch)
tree44f610ef32b0a22179f738edc9e0db7cd16283be /vm_dump.c
parent9e80fb07515accee368c17866fbc9cf91e4483b0 (diff)
* 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
Diffstat (limited to 'vm_dump.c')
-rw-r--r--vm_dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_dump.c b/vm_dump.c
index 2c920b5..dc2f0a6 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -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