[前][次][番号順一覧][スレッド一覧]

ruby-changes:32517

From: naruse <ko1@a...>
Date: Wed, 15 Jan 2014 06:50:02 +0900 (JST)
Subject: [ruby-changes:32517] naruse:r44596 (trunk): suppress warning: implicit conversion loses integer precision

naruse	2014-01-15 06:49:45 +0900 (Wed, 15 Jan 2014)

  New Revision: 44596

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44596

  Log:
    suppress warning: implicit conversion loses integer precision

  Modified files:
    trunk/vm.c
Index: vm.c
===================================================================
--- vm.c	(revision 44595)
+++ vm.c	(revision 44596)
@@ -2354,7 +2354,7 @@ nsdr(void) https://github.com/ruby/ruby/blob/trunk/vm.c#L2354
 #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;
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]