diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-09-27 00:00:03 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-09-27 00:00:03 +0900 |
| commit | 5cd6ed4511a0d8d5a19a0cd2beb4cdd97dc3eff5 (patch) | |
| tree | aed35130caaefda715f3db749a506f0bb0787090 /src/object.c | |
| parent | d4be545d54ad53e282637f66ef5b770b9effa918 (diff) | |
| parent | feaf80d8996340bd0316fda72418b1abd774bd59 (diff) | |
| download | mruby-5cd6ed4511a0d8d5a19a0cd2beb4cdd97dc3eff5.tar.gz mruby-5cd6ed4511a0d8d5a19a0cd2beb4cdd97dc3eff5.zip | |
Merge pull request #4733 from shuujii/use-type-predicate-macros-instead-of-mrb_type-if-possible
Use type predicate macros instead of `mrb_type` if possible
Diffstat (limited to 'src/object.c')
| -rw-r--r-- | src/object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object.c b/src/object.c index ee36da320..0b83c97a3 100644 --- a/src/object.c +++ b/src/object.c @@ -384,7 +384,7 @@ mrb_check_type(mrb_state *mrb, mrb_value x, enum mrb_vtype t) else if (mrb_fixnum_p(x)) { etype = "Fixnum"; } - else if (mrb_type(x) == MRB_TT_SYMBOL) { + else if (mrb_symbol_p(x)) { etype = "Symbol"; } else if (mrb_immediate_p(x)) { |
