Skip to content

Commit e340bab

Browse files
committed
Refactor mrb_str_downcase_bang()
1 parent c6551e0 commit e340bab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/string.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ static mrb_value
11281128
mrb_str_downcase_bang(mrb_state *mrb, mrb_value str)
11291129
{
11301130
char *p, *pend;
1131-
int modify = 0;
1131+
mrb_bool modify = FALSE;
11321132
struct RString *s = mrb_str_ptr(str);
11331133

11341134
mrb_str_modify(mrb, s);
@@ -1137,7 +1137,7 @@ mrb_str_downcase_bang(mrb_state *mrb, mrb_value str)
11371137
while (p < pend) {
11381138
if (ISUPPER(*p)) {
11391139
*p = TOLOWER(*p);
1140-
modify = 1;
1140+
modify = TRUE;
11411141
}
11421142
p++;
11431143
}

0 commit comments

Comments
 (0)