Refactor mrb_str_upcase_bang

This commit is contained in:
Jun Hiroe
2014-05-05 12:51:04 +09:00
parent 2f8de5b32b
commit fdde840d06
+2 -2
View File
@@ -2285,7 +2285,7 @@ mrb_str_upcase_bang(mrb_state *mrb, mrb_value str)
{
struct RString *s = mrb_str_ptr(str);
char *p, *pend;
int modify = 0;
mrb_bool modify = FALSE;
mrb_str_modify(mrb, s);
p = RSTRING_PTR(str);
@@ -2293,7 +2293,7 @@ mrb_str_upcase_bang(mrb_state *mrb, mrb_value str)
while (p < pend) {
if (ISLOWER(*p)) {
*p = TOUPPER(*p);
modify = 1;
modify = TRUE;
}
p++;
}