]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix DOHASH
authorGerd Möllmann <gerd@gnu.org>
Tue, 23 Jan 2024 05:47:40 +0000 (06:47 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 24 Jan 2024 18:31:52 +0000 (19:31 +0100)
(cherry picked from commit 21e272fe4f336827611c4005a56829a0ab02f3f8)

src/lisp.h

index efdb38861413c88e661c3474ea0da1e020cb0e17..54d2f4d3dd1690134a4d0926acd21aad593a9ce7 100644 (file)
@@ -2600,7 +2600,9 @@ hash_from_key (struct Lisp_Hash_Table *h, Lisp_Object key)
    mutate TABLE in any other way.  */
 #define DOHASH(TABLE, IDXVAR)                                          \
   for (ptrdiff_t IDXVAR = 0; IDXVAR < (TABLE)->table_size; IDXVAR++)   \
-    if (!hash_unused_entry_key_p (HASH_KEY (TABLE, IDXVAR)))
+    if (hash_unused_entry_key_p (HASH_KEY (TABLE, IDXVAR)))             \
+      ;                                                                 \
+    else
 
 void hash_table_thaw (Lisp_Object hash_table);