Refactor mrb_str_downcase_bang()

This commit is contained in:
Jun Hiroe
2014-05-05 12:42:57 +09:00
parent c6551e03e0
commit e340babc1e
+2 -2
View File
@@ -1128,7 +1128,7 @@ static mrb_value
mrb_str_downcase_bang(mrb_state *mrb, mrb_value str)
{
char *p, *pend;
int modify = 0;
mrb_bool modify = FALSE;
struct RString *s = mrb_str_ptr(str);
mrb_str_modify(mrb, s);
@@ -1137,7 +1137,7 @@ mrb_str_downcase_bang(mrb_state *mrb, mrb_value str)
while (p < pend) {
if (ISUPPER(*p)) {
*p = TOLOWER(*p);
modify = 1;
modify = TRUE;
}
p++;
}