ruby-changes:65083
From: Nobuyoshi <ko1@a...>
Date: Sat, 30 Jan 2021 20:09:20 +0900 (JST)
Subject: [ruby-changes:65083] 1f5b8f7084 (master): Constified pointers in str_casecmp
https://git.ruby-lang.org/ruby.git/commit/?id=1f5b8f7084 From 1f5b8f7084ac8c6a13612a6ced47e4678ff063c2 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 30 Jan 2021 20:08:18 +0900 Subject: Constified pointers in str_casecmp --- string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/string.c b/string.c index b831e9e..33e14c1 100644 --- a/string.c +++ b/string.c @@ -3497,7 +3497,7 @@ str_casecmp(VALUE str1, VALUE str2) https://github.com/ruby/ruby/blob/trunk/string.c#L3497 { long len; rb_encoding *enc; - char *p1, *p1end, *p2, *p2end; + const char *p1, *p1end, *p2, *p2end; enc = rb_enc_compatible(str1, str2); if (!enc) { -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/