From 1f5b8f7084ac8c6a13612a6ced47e4678ff063c2 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada 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(-) (limited to 'string.c') diff --git a/string.c b/string.c index b831e9e931..33e14c1f24 100644 --- a/string.c +++ b/string.c @@ -3497,7 +3497,7 @@ str_casecmp(VALUE str1, VALUE str2) { 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.2.3