1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Constified pointers in str_casecmp

This commit is contained in:
Nobuyoshi Nakada 2021-01-30 20:08:18 +09:00
parent 98e27016c9
commit 1f5b8f7084
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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) {