mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-set (set_init): adjust a local variable declaration
This commit is contained in:
@@ -58,12 +58,11 @@ set_init(mrb_state *mrb, mrb_value self)
|
||||
{
|
||||
mrb_value enum_obj = mrb_nil_value();
|
||||
mrb_value block = mrb_nil_value();
|
||||
khash_t(set) *kh;
|
||||
|
||||
mrb_get_args(mrb, "|o&", &enum_obj, &block);
|
||||
|
||||
/* Initialize the khash and associate it with the Ruby object */
|
||||
kh = kh_init(set, mrb);
|
||||
khash_t(set) *kh = kh_init(set, mrb);
|
||||
|
||||
/* Associate the khash with the Ruby object so it will be freed when the object is GC'd */
|
||||
set_set_khash(mrb, self, kh);
|
||||
|
||||
Reference in New Issue
Block a user