Small refactoring of #4188

This commit is contained in:
Yukihiro "Matz" Matsumoto
2018-12-17 16:00:22 +09:00
parent e65d42644a
commit ccc5edc60d
+2 -1
View File
@@ -1159,7 +1159,8 @@ mrb_hash_size(mrb_state *mrb, mrb_value hash)
static mrb_value
mrb_hash_size_m(mrb_state *mrb, mrb_value self)
{
return mrb_fixnum_value(mrb_hash_size(mrb, self));
mrb_int size = mrb_hash_size(mrb, self);
return mrb_fixnum_value(size);
}
MRB_API mrb_bool