Constified pointers in str_casecmp
This commit is contained in:
parent
98e27016c9
commit
1f5b8f7084
2
string.c
2
string.c
@ -3497,7 +3497,7 @@ str_casecmp(VALUE str1, VALUE str2)
|
|||||||
{
|
{
|
||||||
long len;
|
long len;
|
||||||
rb_encoding *enc;
|
rb_encoding *enc;
|
||||||
char *p1, *p1end, *p2, *p2end;
|
const char *p1, *p1end, *p2, *p2end;
|
||||||
|
|
||||||
enc = rb_enc_compatible(str1, str2);
|
enc = rb_enc_compatible(str1, str2);
|
||||||
if (!enc) {
|
if (!enc) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user