aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrea Corallo2021-01-01 12:27:39 +0100
committerAndrea Corallo2021-01-01 14:05:52 +0100
commit6ba94f7c77b4013e15f8a5a9181fba9a2df20ab7 (patch)
tree6f249b08c02bd9b36ea19b75b906c789b515ee2f /src
parent67c443adc1ef8a03d27c6172247e792421bb0e13 (diff)
downloademacs-6ba94f7c77b4013e15f8a5a9181fba9a2df20ab7.tar.gz
emacs-6ba94f7c77b4013e15f8a5a9181fba9a2df20ab7.zip
* src/comp.c (Fcomp__compile_ctxt_to_file): Fix hash table iteration.
Diffstat (limited to 'src')
-rw-r--r--src/comp.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/comp.c b/src/comp.c
index da4361030b1..2670c917ed6 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -4413,12 +4413,14 @@ DEFUN ("comp--compile-ctxt-to-file", Fcomp__compile_ctxt_to_file,
4413 4413
4414 struct Lisp_Hash_Table *func_h = 4414 struct Lisp_Hash_Table *func_h =
4415 XHASH_TABLE (CALL1I (comp-ctxt-funcs-h, Vcomp_ctxt)); 4415 XHASH_TABLE (CALL1I (comp-ctxt-funcs-h, Vcomp_ctxt));
4416 for (ptrdiff_t i = 0; i < func_h->count; i++) 4416 for (ptrdiff_t i = 0; i < HASH_TABLE_SIZE (func_h); i++)
4417 declare_function (HASH_VALUE (func_h, i)); 4417 if (!EQ (HASH_VALUE (func_h, i), Qunbound))
4418 declare_function (HASH_VALUE (func_h, i));
4418 /* Compile all functions. Can't be done before because the 4419 /* Compile all functions. Can't be done before because the
4419 relocation structs has to be already defined. */ 4420 relocation structs has to be already defined. */
4420 for (ptrdiff_t i = 0; i < func_h->count; i++) 4421 for (ptrdiff_t i = 0; i < HASH_TABLE_SIZE (func_h); i++)
4421 compile_function (HASH_VALUE (func_h, i)); 4422 if (!EQ (HASH_VALUE (func_h, i), Qunbound))
4423 compile_function (HASH_VALUE (func_h, i));
4422 4424
4423 add_driver_options (); 4425 add_driver_options ();
4424 4426