summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJun Hiroe <[email protected]>2014-05-05 12:51:04 +0900
committerJun Hiroe <[email protected]>2014-05-05 12:51:04 +0900
commitfdde840d0619e67a51979b6ee4f89f8a67ce6e05 (patch)
tree065884ae872f226b3126c5ae3e492a0e075bb8c2
parent2f8de5b32b15bcae069666c574bc1bec8fbcd5b2 (diff)
downloadmruby-fdde840d0619e67a51979b6ee4f89f8a67ce6e05.tar.gz
mruby-fdde840d0619e67a51979b6ee4f89f8a67ce6e05.zip
Refactor mrb_str_upcase_bang
-rw-r--r--src/string.c4
1 files changed, 2 insertions, 2 deletions
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++;
}