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

ruby-changes:60669

From: Takashi <ko1@a...>
Date: Mon, 6 Apr 2020 17:50:45 +0900 (JST)
Subject: [ruby-changes:60669] 928bb17770 (master): Fix -Wshorten-64-to-32 in 4f802828f4

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

From 928bb17770ca0648d4098a7c941e4cc4ec22e004 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Mon, 6 Apr 2020 01:50:12 -0700
Subject: Fix -Wshorten-64-to-32 in 4f802828f4


diff --git a/tool/ruby_vm/views/_mjit_compile_send.erb b/tool/ruby_vm/views/_mjit_compile_send.erb
index ab2ad93..9104648 100644
--- a/tool/ruby_vm/views/_mjit_compile_send.erb
+++ b/tool/ruby_vm/views/_mjit_compile_send.erb
@@ -25,7 +25,7 @@ https://github.com/ruby/ruby/blob/trunk/tool/ruby_vm/views/_mjit_compile_send.erb#L25
         && fastpath_applied_iseq_p(ci, captured_cc, iseq = def_iseq_ptr(vm_cc_cme(captured_cc)->def))) {
 
         int param_size = iseq->body->param.size;
-        int sp_inc = sp_inc_of_sendish(ci);
+        int sp_inc = (int)sp_inc_of_sendish(ci);
 
         fprintf(f, "{\n");
 % # JIT: Declare stack_size to be used in some macro of _mjit_compile_insn_body.erb
-- 
cgit v0.10.2


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

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