diff options
| author | Jun Hiroe <[email protected]> | 2013-07-15 23:00:54 +0900 |
|---|---|---|
| committer | Jun Hiroe <[email protected]> | 2013-07-15 23:17:12 +0900 |
| commit | 8e42868600e7adcdc5665ff9b0244150296960d6 (patch) | |
| tree | 152777f53050f0ba0e5e891c0550df22c41e72a5 /src/string.c | |
| parent | 18c167b8b5200aa604a5c665a6dcb3b9ec7f02b4 (diff) | |
| download | mruby-8e42868600e7adcdc5665ff9b0244150296960d6.tar.gz mruby-8e42868600e7adcdc5665ff9b0244150296960d6.zip | |
Repalace int with mrb_bool because a return value is boolean.
Diffstat (limited to 'src/string.c')
| -rw-r--r-- | src/string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string.c b/src/string.c index 59a1df455..975f6cdb9 100644 --- a/src/string.c +++ b/src/string.c @@ -595,7 +595,7 @@ mrb_str_cmp_m(mrb_state *mrb, mrb_value str1) return mrb_fixnum_value(result); } -static int +static mrb_bool str_eql(mrb_state *mrb, const mrb_value str1, const mrb_value str2) { const mrb_int len = RSTRING_LEN(str1); @@ -606,7 +606,7 @@ str_eql(mrb_state *mrb, const mrb_value str1, const mrb_value str2) return FALSE; } -int +mrb_bool mrb_str_equal(mrb_state *mrb, mrb_value str1, mrb_value str2) { if (mrb_obj_equal(mrb, str1, str2)) return TRUE; |
