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 /mrbgems/mruby-range-ext/src | |
| 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 'mrbgems/mruby-range-ext/src')
| -rw-r--r-- | mrbgems/mruby-range-ext/src/range.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-range-ext/src/range.c b/mrbgems/mruby-range-ext/src/range.c index 377677ffb..4e17dac8c 100644 --- a/mrbgems/mruby-range-ext/src/range.c +++ b/mrbgems/mruby-range-ext/src/range.c @@ -1,7 +1,7 @@ #include "mruby.h" #include "mruby/range.h" -static int +static mrb_bool r_le(mrb_state *mrb, mrb_value a, mrb_value b) { mrb_value r = mrb_funcall(mrb, a, "<=>", 1, b); /* compare result */ @@ -15,7 +15,7 @@ r_le(mrb_state *mrb, mrb_value a, mrb_value b) return FALSE; } -static int +static mrb_bool r_lt(mrb_state *mrb, mrb_value a, mrb_value b) { mrb_value r = mrb_funcall(mrb, a, "<=>", 1, b); |
