mruby-os-memsize/memsize.c: avoid mrb_get_args()

This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-01-26 11:14:10 +09:00
parent 78bbf75981
commit 7b27346386
+1 -3
View File
@@ -192,9 +192,7 @@ static mrb_value
os_memsize_of(mrb_state *mrb, mrb_value self)
{
size_t total;
mrb_value obj;
mrb_get_args(mrb, "o", &obj);
mrb_value obj = mrb_get_arg1(mrb);
total = os_memsize_of_object(mrb, obj);
return mrb_fixnum_value((mrb_int)total);