From 7fd74553f8df574740ab930491baade7223fe5c2 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 4 Aug 2024 17:27:43 -0400 Subject: More refcount fixes --- compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compile.c') diff --git a/compile.c b/compile.c index 1bad1238..1c258777 100644 --- a/compile.c +++ b/compile.c @@ -2143,7 +2143,7 @@ CORD compile(env_t *env, ast_t *ast) if (align > 1 && offset % align > 0) offset += align - (offset % align); return CORD_all("({ table_t *t = ", compile_to_pointer_depth(env, f->fielded, 1, false), ";\n" - "ARRAY_INCREF(t->entries.data_refcount);\n" + "ARRAY_INCREF(t->entries);\n" "(array_t){.data = t->entries.data + ", CORD_asprintf("%zu", offset), ",\n .length=t->entries.length,\n .stride=t->entries.stride,\n .data_refcount=3};})"); } else if (streq(f->field, "fallback")) { -- cgit v1.2.3