always use unsigned int as mrb_bool even in C++

This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-04-29 09:23:43 +09:00
parent 22469f3be1
commit 8890a992a6
3 changed files with 3 additions and 11 deletions
+1 -1
View File
@@ -1286,7 +1286,7 @@ mrb_str_include(mrb_state *mrb, mrb_value self)
mrb_get_args(mrb, "o", &str2);
if (mrb_type(str2) == MRB_TT_FIXNUM) {
include_p = memchr(RSTRING_PTR(self), mrb_fixnum(str2), RSTRING_LEN(self));
include_p = (memchr(RSTRING_PTR(self), mrb_fixnum(str2), RSTRING_LEN(self)) != NULL);
}
else {
str2 = mrb_str_to_str(mrb, str2);