summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJun Hiroe <[email protected]>2014-05-05 12:42:57 +0900
committerJun Hiroe <[email protected]>2014-05-05 12:42:57 +0900
commite340babc1e52cdb2fde87ae34ed9d93baa19f334 (patch)
treed485384d9def9dc1bd80f2692679d0ae080de71d /src
parentc6551e03e074403bfbe328257c6c3540fe2e2565 (diff)
downloadmruby-e340babc1e52cdb2fde87ae34ed9d93baa19f334.tar.gz
mruby-e340babc1e52cdb2fde87ae34ed9d93baa19f334.zip
Refactor mrb_str_downcase_bang()
Diffstat (limited to 'src')
-rw-r--r--src/string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string.c b/src/string.c
index 2b232aa6a..f3f777015 100644
--- a/src/string.c
+++ b/src/string.c
@@ -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++;
}