]> git.eshelyaron.com Git - emacs.git/commitdiff
Port recently-added bitfields to IBM XL C 16.1
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 Jan 2025 07:10:53 +0000 (23:10 -0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 20 Jan 2025 15:58:11 +0000 (16:58 +0100)
* src/lisp.h (struct Lisp_Hash_Table):
Use ENUM_BF for members weakness and frozen_test,
since they are enum bitfields.

(cherry picked from commit abf2e097b281c92a7bc2776a967893b248a68384)

src/lisp.h

index a8fe2e9f6bc3540f2201cd33eb2dfbab7fe90a86..dc365e1d46febaf52737c7a000d25dd0661068fd 100644 (file)
@@ -2662,10 +2662,10 @@ struct Lisp_Hash_Table
   unsigned char index_bits;    /* log2 (size of the index vector).  */
 
   /* Weakness of the table.  */
-  hash_table_weakness_t weakness : 3;
+  ENUM_BF (hash_table_weakness_t) weakness : 3;
 
   /* Hash table test (only used when frozen in dump)  */
-  hash_table_std_test_t frozen_test : 2;
+  ENUM_BF (hash_table_std_test_t) frozen_test : 2;
 
   /* True if the table can be purecopied.  The table cannot be
      changed afterwards.  */