diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-08-18 21:32:36 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 16:21:47 +0900 |
| commit | 55163a8a0a5737e9113f16d0f03b7ab4258706ba (patch) | |
| tree | d82ac663a0ef770cf0dad70660bc8f2e711459d5 /src/range.c | |
| parent | 867268897acb8a41153950362bc2156cf60f7051 (diff) | |
| download | mruby-55163a8a0a5737e9113f16d0f03b7ab4258706ba.tar.gz mruby-55163a8a0a5737e9113f16d0f03b7ab4258706ba.zip | |
Rename `MRB_TT_FIXNUM` to `MRB_TT_INTEGER`.
We still have `#define MRB_TT_FIXNUM MRB_TT_INTEGER` for compatibility.
Diffstat (limited to 'src/range.c')
| -rw-r--r-- | src/range.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/range.c b/src/range.c index 8f09eda24..0a76c9939 100644 --- a/src/range.c +++ b/src/range.c @@ -24,10 +24,10 @@ r_check(mrb_state *mrb, mrb_value a, mrb_value b) ta = mrb_type(a); tb = mrb_type(b); #ifdef MRB_NO_FLOAT - if (ta == MRB_TT_FIXNUM && tb == MRB_TT_FIXNUM ) { + if (ta == MRB_TT_INTEGER && tb == MRB_TT_INTEGER ) { #else - if ((ta == MRB_TT_FIXNUM || ta == MRB_TT_FLOAT) && - (tb == MRB_TT_FIXNUM || tb == MRB_TT_FLOAT)) { + if ((ta == MRB_TT_INTEGER || ta == MRB_TT_FLOAT) && + (tb == MRB_TT_INTEGER || tb == MRB_TT_FLOAT)) { #endif return; } |
