mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
Constified pointers in str_casecmp
This commit is contained in:
parent
98e27016c9
commit
1f5b8f7084
1 changed files with 1 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue