mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
gc.c: fix RVALUE_zero initializer warning after gcnext removal
the second NULL in the initializer was for the removed gcnext field, causing "makes integer from pointer" warning on the tt bitfield. Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -467,7 +467,7 @@ mrb_gc_unregister(mrb_state *mrb, mrb_value obj)
|
||||
MRB_API struct RBasic*
|
||||
mrb_obj_alloc(mrb_state *mrb, enum mrb_vtype ttype, struct RClass *cls)
|
||||
{
|
||||
static const RVALUE RVALUE_zero = { { { NULL, NULL, MRB_TT_FALSE } } };
|
||||
static const RVALUE RVALUE_zero = { { { NULL, MRB_TT_FALSE } } };
|
||||
mrb_gc *gc = &mrb->gc;
|
||||
|
||||
if (cls) {
|
||||
|
||||
Reference in New Issue
Block a user