mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
always use unsigned int as mrb_bool even in C++
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user