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 /mrbgems/mruby-complex | |
| 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 'mrbgems/mruby-complex')
| -rw-r--r-- | mrbgems/mruby-complex/mrblib/complex.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-complex/mrblib/complex.rb b/mrbgems/mruby-complex/mrblib/complex.rb index 74c128a07..67f940865 100644 --- a/mrbgems/mruby-complex/mrblib/complex.rb +++ b/mrbgems/mruby-complex/mrblib/complex.rb @@ -104,7 +104,7 @@ class Complex < Numeric alias_method :imag, :imaginary - [Fixnum, Float].each do |cls| + [Integer, Float].each do |cls| [:+, :-, :*, :/, :==].each do |op| cls.instance_eval do original_operator_name = :"__original_operator_#{op}_complex" |
