]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/comp.c (Fcomp__compile_ctxt_to_file): Fix hash table Qunbound use.
authorAndrea Corallo <acorallo@gnu.org>
Thu, 4 Jan 2024 10:06:41 +0000 (11:06 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sat, 6 Jan 2024 16:15:44 +0000 (17:15 +0100)
(cherry picked from commit 9308d9a74ab586e9793b2561da23116f2b4fe205)

src/comp.c

index 6cb35a8619ab1c05cf5e7714433171ab7246351f..347f8924793ac0cc36411742e614f04c7a2564df 100644 (file)
@@ -4966,12 +4966,12 @@ DEFUN ("comp--compile-ctxt-to-file", Fcomp__compile_ctxt_to_file,
   struct Lisp_Hash_Table *func_h =
     XHASH_TABLE (CALL1I (comp-ctxt-funcs-h, Vcomp_ctxt));
   for (ptrdiff_t i = 0; i < HASH_TABLE_SIZE (func_h); i++)
-    if (!BASE_EQ (HASH_VALUE (func_h, i), Qunbound))
+    if (!BASE_EQ (HASH_KEY (func_h, i), Qunbound))
       declare_function (HASH_VALUE (func_h, i));
   /* Compile all functions. Can't be done before because the
      relocation structs has to be already defined.  */
   for (ptrdiff_t i = 0; i < HASH_TABLE_SIZE (func_h); i++)
-    if (!BASE_EQ (HASH_VALUE (func_h, i), Qunbound))
+    if (!BASE_EQ (HASH_KEY (func_h, i), Qunbound))
       compile_function (HASH_VALUE (func_h, i));
 
   /* Work around bug#46495 (GCC PR99126). */