mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
hash.c (obj_eql): simplify the expression
This commit is contained in:
+1
-2
@@ -355,10 +355,9 @@ obj_hash_code(mrb_state *mrb, mrb_value key, struct RHash *h)
|
||||
static mrb_bool
|
||||
obj_eql(mrb_state *mrb, mrb_value a, mrb_value b, struct RHash *h)
|
||||
{
|
||||
enum mrb_vtype tt = mrb_type(a);
|
||||
mrb_bool eql;
|
||||
|
||||
switch (tt) {
|
||||
switch (mrb_type(a)) {
|
||||
case MRB_TT_STRING:
|
||||
return mrb_str_equal(mrb, a, b);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user