]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/comp.c (emit_static_object): Make use of ARRAYELTS.
authorAndrea Corallo <akrl@sdf.org>
Fri, 11 Sep 2020 12:57:11 +0000 (14:57 +0200)
committerAndrea Corallo <akrl@sdf.org>
Fri, 11 Sep 2020 13:04:34 +0000 (15:04 +0200)
src/comp.c

index 1ef4f3054b1e4af8d975e8d17a893bd9a208ac66..b3640b5e378a1ba40a0dbf2a51267a5d5160a609 100644 (file)
@@ -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,