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

ruby-changes:57943

From: Jeremy <ko1@a...>
Date: Fri, 27 Sep 2019 00:17:54 +0900 (JST)
Subject: [ruby-changes:57943] 9556342838 (master): Fix shorten-64-to-32 compile warnings/errors

https://git.ruby-lang.org/ruby.git/commit/?id=9556342838

From 955634283862d9d1966de43c73ece15714afdae2 Mon Sep 17 00:00:00 2001
From: Jeremy Evans <code@j...>
Date: Wed, 25 Sep 2019 17:59:41 -0700
Subject: Fix shorten-64-to-32 compile warnings/errors


diff --git a/thread.c b/thread.c
index b6fd8e5..66e3f8a 100644
--- a/thread.c
+++ b/thread.c
@@ -671,7 +671,7 @@ thread_do_start(rb_thread_t *th) https://github.com/ruby/ruby/blob/trunk/thread.c#L671
 
     if (th->invoke_type == thread_invoke_type_proc) {
         VALUE args = th->invoke_arg.proc.args;
-        int args_len = RARRAY_LEN(args);
+        int args_len = (int)RARRAY_LEN(args);
         int kw_splat = th->invoke_arg.proc.kw_splat;
         const VALUE *args_ptr;
         VALUE procval = th->invoke_arg.proc.proc;
-- 
cgit v0.10.2


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

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