]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
obstack: Fix compilation error on MSVC (regression 2025-05-07).
authorBruno Haible <bruno@clisp.org>
Mon, 12 May 2025 11:22:06 +0000 (13:22 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 12 May 2025 11:22:06 +0000 (13:22 +0200)
* lib/obstack.in.h (obstack_free): Fix typo.

ChangeLog
lib/obstack.in.h

index 58c3dae6681951162d9d77b874c8890345244855..9d782ca0d52c7ed2c4ec89d43f4a38994e91c323 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-05-12  Bruno Haible  <bruno@clisp.org>
+
+       obstack: Fix compilation error on MSVC (regression 2025-05-07).
+       * lib/obstack.in.h (obstack_free): Fix typo.
+
 2025-05-12  Bruno Haible  <bruno@clisp.org>
 
        doc: Update for a few recently fixed Hurd bugs.
index 698b6b37a7c7f3b2e11632a0ff9f270504e239f4..91a5e444c9d2d4599447cd845184d3064c95a4a2 100644 (file)
@@ -590,7 +590,7 @@ extern int obstack_exit_failure;
 
 # define obstack_free(h, obj)                                                \
   ((h)->temp.tempptr = (void *) (obj),                                       \
-   (((_OBSTACK_CPTR) (h)->chunk < (OBSTACK_CPTR) (h)->temp.tempptr           \
+   (((_OBSTACK_CPTR) (h)->chunk < (_OBSTACK_CPTR) (h)->temp.tempptr          \
      && (_OBSTACK_CPTR) (h)->temp.tempptr < (_OBSTACK_CPTR) (h)->chunk_limit) \
     ? (void) ((h)->next_free = (h)->object_base = (char *) (h)->temp.tempptr) \
     : __obstack_free (h, (h)->temp.tempptr)))