]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
hamt: Fix compilation error (regression 2026-08-10).
authorBruno Haible <bruno@clisp.org>
Wed, 12 Aug 2026 04:27:10 +0000 (06:27 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 12 Aug 2026 04:27:10 +0000 (06:27 +0200)
* lib/hamt.c (ref_counter): Use GL_HAMT_ATOMIC instead of
GL_HAMT_THREAD_SAFE.

ChangeLog
lib/hamt.c

index 11fe00ddfb555f639564d7ea25d362afb5278dd7..2f90aa99c3c1b646bd7afaa76da9940ebc440fd1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-08-12  Bruno Haible  <bruno@clisp.org>
+
+       hamt: Fix compilation error (regression 2026-08-10).
+       * lib/hamt.c (ref_counter): Use GL_HAMT_ATOMIC instead of
+       GL_HAMT_THREAD_SAFE.
+
 2026-08-11  Bruno Haible  <bruno@clisp.org>
 
        tests: Make last patch side-effect free.
index fa4bed98d17e15ddd7997bf5656f5606056284d0..095a47665bc252310b192c170f893960f2ef6053 100644 (file)
    A thread must not modify an entry or its children (!) if its
    reference count implies that the entry is shared by at least two
    hamts.  */
-typedef
-#if GL_HAMT_THREAD_SAFE
-_Atomic
-#endif
-size_t ref_counter;
+typedef GL_HAMT_ATOMIC (size_t) ref_counter;
 
 /***************/
 /* Entry Types */