Skip to content

Commit

Permalink
Constified pointers in str_casecmp
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Jan 30, 2021
1 parent 98e2701 commit 1f5b8f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion string.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 1f5b8f7

Please sign in to comment.