From fdde840d0619e67a51979b6ee4f89f8a67ce6e05 Mon Sep 17 00:00:00 2001 From: Jun Hiroe Date: Mon, 5 May 2014 12:51:04 +0900 Subject: Refactor mrb_str_upcase_bang --- src/string.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/string.c b/src/string.c index c8fcc7282..8f57d484d 100644 --- a/src/string.c +++ b/src/string.c @@ -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++; } -- cgit v1.2.3