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

ruby-changes:68629

From: Alan <ko1@a...>
Date: Thu, 21 Oct 2021 08:11:08 +0900 (JST)
Subject: [ruby-changes:68629] edede7733d (master): Explicitly convert function pointer to void pointer

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

From edede7733d2a16872918081c1dad2c1ed096dc36 Mon Sep 17 00:00:00 2001
From: Alan Wu <XrXr@u...>
Date: Mon, 5 Oct 2020 14:30:04 -0400
Subject: Explicitly convert function pointer to void pointer

---
 ujit_utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ujit_utils.c b/ujit_utils.c
index 58389fd6b9..0594503924 100644
--- a/ujit_utils.c
+++ b/ujit_utils.c
@@ -77,7 +77,7 @@ void print_str(codeblock_t* cb, const char* str) https://github.com/ruby/ruby/blob/trunk/ujit_utils.c#L77
     cb_write_byte(cb, 0);
 
     // Call the print function
-    mov(cb, RAX, const_ptr_opnd(&print_str_cfun));
+    mov(cb, RAX, const_ptr_opnd((void*)&print_str_cfun));
     call(cb, RAX);
 
     pop_regs(cb);
-- 
cgit v1.2.1


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

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