[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/native-comp c55884d 3/3: * src/comp.c (emit_static_object): Make
From: |
Andrea Corallo |
Subject: |
feature/native-comp c55884d 3/3: * src/comp.c (emit_static_object): Make use of ARRAYELTS. |
Date: |
Fri, 11 Sep 2020 09:04:52 -0400 (EDT) |
branch: feature/native-comp
commit c55884d72a4ea806a97c9925d6f85adcca89a3bd
Author: Andrea Corallo <akrl@sdf.org>
Commit: Andrea Corallo <akrl@sdf.org>
* src/comp.c (emit_static_object): Make use of ARRAYELTS.
---
src/comp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/comp.c b/src/comp.c
index 1ef4f30..b3640b5 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -2549,7 +2549,7 @@ emit_static_object (const char *name, Lisp_Object obj)
gcc_jit_context_new_struct_type (comp.ctxt,
NULL,
format_string ("%s_struct", name),
- 2, fields));
+ ARRAYELTS (fields), fields));
gcc_jit_lvalue *data_struct =
gcc_jit_context_new_global (comp.ctxt,