summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-14 21:49:45 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-14 21:49:45 +0000
commit0f24712471c0cd8abf15d36848f92cba41db90c4 (patch)
tree2ce8dcdca38caa954383329d2202cbda20ca0662
parent79e69ec7151662ef6fcb149008d4baab4c4a682c (diff)
suppress warning: implicit conversion loses integer precision
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 6fae923..1142a91 100644
--- a/vm.c
+++ b/vm.c
@@ -2354,7 +2354,7 @@ nsdr(void)
#include <execinfo.h>
#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);
char **syms = backtrace_symbols(trace, n);
int i;