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
Pack `mrb_value` in an `intptr_t` integer. Consumes less
memory compared to `MRB_NO_BOXING` especially on 32-bit
platforms. `Fixnum` size is 31 bits, so some integer values
does not fit in `Fixnum` integers.
platforms. Inlined integer size is 31 bits, so some `mrb_int`
values does not fit in `mrb_value`. Those integers are allocated
in the object heap as `struct RInteger`.
## `MRB_NAN_BOXING`
......
......@@ -15,7 +15,7 @@ class Range
val = self.begin
last = self.end
if val.kind_of?(Fixnum) && last.nil?
if val.kind_of?(Integer) && last.nil?
i = val
while true
block.call(i)
......
......@@ -409,7 +409,7 @@ mrb_check_type(mrb_state *mrb, mrb_value x, enum mrb_vtype t)
ename = "nil";
}
else if (mrb_integer_p(x)) {
ename = "Fixnum";
ename = "Integer";
}
else if (mrb_symbol_p(x)) {
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