Remove the obsolete term `Fixnum`.

Except for compatibility code.
parent 23019213
...@@ -77,8 +77,9 @@ to be default `mrb_value` representation. Now the default is ...@@ -77,8 +77,9 @@ to be default `mrb_value` representation. Now the default is
Pack `mrb_value` in an `intptr_t` integer. Consumes less Pack `mrb_value` in an `intptr_t` integer. Consumes less
memory compared to `MRB_NO_BOXING` especially on 32-bit memory compared to `MRB_NO_BOXING` especially on 32-bit
platforms. `Fixnum` size is 31 bits, so some integer values platforms. Inlined integer size is 31 bits, so some `mrb_int`
does not fit in `Fixnum` integers. values does not fit in `mrb_value`. Those integers are allocated
in the object heap as `struct RInteger`.
## `MRB_NAN_BOXING` ## `MRB_NAN_BOXING`
......
...@@ -15,7 +15,7 @@ class Range ...@@ -15,7 +15,7 @@ class Range
val = self.begin val = self.begin
last = self.end last = self.end
if val.kind_of?(Fixnum) && last.nil? if val.kind_of?(Integer) && last.nil?
i = val i = val
while true while true
block.call(i) block.call(i)
......
...@@ -409,7 +409,7 @@ mrb_check_type(mrb_state *mrb, mrb_value x, enum mrb_vtype t) ...@@ -409,7 +409,7 @@ mrb_check_type(mrb_state *mrb, mrb_value x, enum mrb_vtype t)
ename = "nil"; ename = "nil";
} }
else if (mrb_integer_p(x)) { else if (mrb_integer_p(x)) {
ename = "Fixnum"; ename = "Integer";
} }
else if (mrb_symbol_p(x)) { else if (mrb_symbol_p(x)) {
ename = "Symbol"; ename = "Symbol";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment