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

ruby-changes:68444

From: U.Nakamura <ko1@a...>
Date: Thu, 14 Oct 2021 10:24:26 +0900 (JST)
Subject: [ruby-changes:68444] 3099bb6e3c (master): rb_encoding is already const

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

From 3099bb6e3c66ce52e1e2c1c93d4193d415d3c911 Mon Sep 17 00:00:00 2001
From: "U.Nakamura" <usa@r...>
Date: Thu, 14 Oct 2021 10:22:55 +0900
Subject: rb_encoding is already const

- this change get rid of a warning of mswin build.
  see include/ruby/internal/encoding/encoding.h(116)
---
 file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/file.c b/file.c
index 23f81406c6..a22f862db2 100644
--- a/file.c
+++ b/file.c
@@ -4389,7 +4389,7 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/file.c#L4389
 rb_check_realpath_emulate_try(VALUE arg)
 {
     VALUE *args = (VALUE *)arg;
-    return rb_check_realpath_emulate(args[0], args[1], (const rb_encoding *)args[2], RB_REALPATH_CHECK);
+    return rb_check_realpath_emulate(args[0], args[1], (rb_encoding *)args[2], RB_REALPATH_CHECK);
 }
 
 static VALUE
-- 
cgit v1.2.1


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

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