Repalace int with mrb_bool because a return value is boolean.
Merge pull request #1385 from suzukaze/refactor-return

Repalace int with mrb_bool because a return value is boolean.