]> git.eshelyaron.com Git - emacs.git/commitdiff
* Fix build for --enable-check-lisp-object-type=yes (bug#41703)
authorAndrea Corallo <akrl@sdf.org>
Thu, 4 Jun 2020 10:02:51 +0000 (11:02 +0100)
committerAndrea Corallo <akrl@sdf.org>
Thu, 4 Jun 2020 10:02:51 +0000 (11:02 +0100)
* src/comp.c (emit_coerce): Add missing declaration.

src/comp.c

index 8e7582b3e65d416bce500b705726429fe200ad75..45904a3bb1d68265a351885ae4b9f4312c68120c 100644 (file)
@@ -984,6 +984,7 @@ emit_coerce (gcc_jit_type *new_type, gcc_jit_rvalue *obj)
       gcc_jit_rvalue *lwordobj =
         emit_coerce (comp.lisp_word_type, obj);
 
+      static ptrdiff_t i;
       gcc_jit_lvalue *tmp_s =
        gcc_jit_function_new_local (comp.func, NULL, comp.lisp_obj_type,
                                    format_string ("lisp_obj_%td", i++));