summaryrefslogtreecommitdiffhomepage
path: root/src/hash.c
diff options
context:
space:
mode:
authorYukihiro Matz Matsumoto <[email protected]>2013-03-19 12:03:54 +0900
committerYukihiro Matz Matsumoto <[email protected]>2013-03-19 12:03:54 +0900
commitd0d920e909497173f562d75309e3b0f0a607778e (patch)
tree0f421cb092c09f1edf4f13187cd54a3e2807476f /src/hash.c
parentdc2e1c1ce8ae6da16532337b85ea1064db8d0624 (diff)
downloadmruby-d0d920e909497173f562d75309e3b0f0a607778e.tar.gz
mruby-d0d920e909497173f562d75309e3b0f0a607778e.zip
rename mrb_true_or_false_value() to mrb_bool_value()
Diffstat (limited to 'src/hash.c')
-rw-r--r--src/hash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hash.c b/src/hash.c
index 2eb1b78ed..dc00c0db5 100644
--- a/src/hash.c
+++ b/src/hash.c
@@ -810,7 +810,7 @@ mrb_hash_empty_p(mrb_state *mrb, mrb_value self)
empty_p = 1;
}
- return mrb_true_or_false_value(empty_p);
+ return mrb_bool_value(empty_p);
}
/* 15.2.13.4.11 */
@@ -1023,7 +1023,7 @@ mrb_hash_has_keyWithKey(mrb_state *mrb, mrb_value hash, mrb_value key)
result = 0;
}
- return mrb_true_or_false_value(result);
+ return mrb_bool_value(result);
}
/* 15.2.13.4.13 */
@@ -1115,7 +1115,7 @@ hash_equal(mrb_state *mrb, mrb_value hash1, mrb_value hash2, int eql)
h1 = RHASH_TBL(hash1);
h2 = RHASH_TBL(hash2);
if (!h1) {
- return mrb_true_or_false_value(!h2);
+ return mrb_bool_value(!h2);
}
if (!h2) return mrb_false_value();
if (kh_size(h1) != kh_size(h2)) return mrb_false_value();