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

ruby-changes:68265

From: Nobuyoshi <ko1@a...>
Date: Tue, 5 Oct 2021 16:03:45 +0900 (JST)
Subject: [ruby-changes:68265] 5a961c3768 (master): Remove a redundant cast between the exact same types

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

From 5a961c37682383d5d439a16b912be62cd2d0a7f0 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Tue, 5 Oct 2021 15:56:34 +0900
Subject: Remove a redundant cast between the exact same types

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

diff --git a/string.c b/string.c
index 3f588dfbb1..4cd5f5e677 100644
--- a/string.c
+++ b/string.c
@@ -6809,7 +6809,7 @@ rb_str_casemap(VALUE source, OnigCaseFoldType *flags, rb_encoding *enc) https://github.com/ruby/ruby/blob/trunk/string.c#L6809
 	current_buffer->next = NULL;
 	current_buffer->capa = capa;
 	buffer_length_or_invalid = enc->case_map(flags,
-				   (const OnigUChar**)&source_current, source_end,
+				   &source_current, source_end,
 				   current_buffer->space,
 				   current_buffer->space+current_buffer->capa,
 				   enc);
-- 
cgit v1.2.1


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

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