diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-07-16 09:38:09 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-07-16 09:38:09 -0700 |
| commit | 6ee9858b670a30a49e3d1c88bf932e1ba41a6847 (patch) | |
| tree | 152777f53050f0ba0e5e891c0550df22c41e72a5 /src/string.c | |
| parent | 18c167b8b5200aa604a5c665a6dcb3b9ec7f02b4 (diff) | |
| parent | 8e42868600e7adcdc5665ff9b0244150296960d6 (diff) | |
| download | mruby-6ee9858b670a30a49e3d1c88bf932e1ba41a6847.tar.gz mruby-6ee9858b670a30a49e3d1c88bf932e1ba41a6847.zip | |
Merge pull request #1385 from suzukaze/refactor-return
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; |
