mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
class.c: skip keyword argument hash duplication in mrb_get_args()
Same reasoning as the vm.c change - the keyword hash arriving at C functions via mrb_get_args() is always freshly constructed at the call site, so duplication is unnecessary. Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -1633,7 +1633,7 @@ get_args_v(mrb_state *mrb, mrb_args_format format, void** ptr, va_list *ap)
|
||||
|
||||
case ':':
|
||||
{
|
||||
mrb_value ksrc = mrb_hash_p(kdict) ? mrb_hash_dup(mrb, kdict) : mrb_hash_new(mrb);
|
||||
mrb_value ksrc = mrb_hash_p(kdict) ? kdict : mrb_hash_new(mrb);
|
||||
const mrb_kwargs *kwargs = GET_ARG(const mrb_kwargs*);
|
||||
mrb_value *rest;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user