Remove the obsolete term Fixnum.

Except for compatibility code.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-05-11 07:36:34 +09:00
parent 23019213b7
commit 2a280a8f70
3 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -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`
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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";