mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Remove the obsolete term Fixnum.
Except for compatibility code.
This commit is contained in:
+3
-2
@@ -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
@@ -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
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user