diff options
| author | dearblue <[email protected]> | 2020-01-19 09:48:14 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 16:21:44 +0900 |
| commit | 80fe9838d2fdab1bb819bbeea892ebe748837b99 (patch) | |
| tree | 848da66323175327b5950dc41868e85a3bd3611f /src/class.c | |
| parent | 40d0d8fe0efa6a34b54ef90a93f16b17fe3f3c7b (diff) | |
| download | mruby-80fe9838d2fdab1bb819bbeea892ebe748837b99.tar.gz mruby-80fe9838d2fdab1bb819bbeea892ebe748837b99.zip | |
Integrate `Fixnum` class into `Integer` class
* The `Fixnum` constant is now an alias for the `Integer` class.
* Remove `struct mrb_state::fixnum_class` member.
If necessary, use `struct mrb_state::integer_class` instead.
Diffstat (limited to 'src/class.c')
| -rw-r--r-- | src/class.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/class.c b/src/class.c index 845246e97..df33feffb 100644 --- a/src/class.c +++ b/src/class.c @@ -638,8 +638,8 @@ void mrb_hash_check_kdict(mrb_state *mrb, mrb_value self); z: String [const char*] NUL terminated string; z! gives NULL for nil a: Array [mrb_value*,mrb_int] Receive two arguments; a! gives (NULL,0) for nil c: Class/Module [strcut RClass*] - f: Fixnum/Float [mrb_float] - i: Fixnum/Float [mrb_int] + f: Integer/Float [mrb_float] + i: Integer/Float [mrb_int] b: boolean [mrb_bool] n: String/Symbol [mrb_sym] d: data [void*,mrb_data_type const] 2nd argument will be used to check data type so it won't be modified; when ! follows, the value may be nil @@ -1874,7 +1874,7 @@ mrb_module_new(mrb_state *mrb) * called with an explicit receiver, as <code>class</code> is also a * reserved word in Ruby. * - * 1.class #=> Fixnum + * 1.class #=> Integer * self.class #=> Object */ |
