mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
numeric.c (mrb_cmp): inline big-integer comparison.
This commit is contained in:
@@ -2047,6 +2047,7 @@ mrb_cmp(mrb_state *mrb, mrb_value obj1, mrb_value obj2)
|
||||
switch (mrb_type(obj1)) {
|
||||
case MRB_TT_INTEGER:
|
||||
case MRB_TT_FLOAT:
|
||||
case MRB_TT_BIGINT:
|
||||
return cmpnum(mrb, obj1, obj2);
|
||||
case MRB_TT_STRING:
|
||||
if (!mrb_string_p(obj2))
|
||||
|
||||
Reference in New Issue
Block a user