diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-04-30 00:06:01 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-04-30 00:06:01 +0900 |
| commit | 3725fe657d4dfcf6d6e9699ee9f2157b09c62ece (patch) | |
| tree | 91df5e6348d39508690c577fa69c59945a2a1485 | |
| parent | a893a48b68029491dff643d7fb471cf79240cf2d (diff) | |
| download | mruby-3725fe657d4dfcf6d6e9699ee9f2157b09c62ece.tar.gz mruby-3725fe657d4dfcf6d6e9699ee9f2157b09c62ece.zip | |
return value of mrb_obj_is_kind_of() should be int (used as boolean); fix #71
| -rw-r--r-- | include/mruby.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby.h b/include/mruby.h index ace3b67ec..4bb1fd2ac 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -406,7 +406,7 @@ const char * mrb_obj_classname(mrb_state *mrb, mrb_value obj); struct RClass* mrb_obj_class(mrb_state *mrb, mrb_value obj); mrb_value mrb_class_path(mrb_state *mrb, struct RClass *c); mrb_value mrb_convert_type(mrb_state *mrb, mrb_value val, mrb_int type, const char *tname, const char *method); -mrb_int mrb_obj_is_kind_of(mrb_state *mrb, mrb_value obj, struct RClass *c); +int mrb_obj_is_kind_of(mrb_state *mrb, mrb_value obj, struct RClass *c); mrb_value mrb_obj_inspect(mrb_state *mrb, mrb_value self); mrb_value mrb_obj_clone(mrb_state *mrb, mrb_value self); mrb_value mrb_check_funcall(mrb_state *mrb, mrb_value recv, mrb_sym mid, int argc, mrb_value *argv); |
