* lib/obstack.in.h (_OBSTACK_CHUNK_SIZE_T) [!__GL_GNULIB_HEADER]:
Now long, not unsigned long, since that’s what glibc does.
2025-05-05 Paul Eggert <eggert@cs.ucla.edu>
+ obstack: use signed chunk sizes
+ * lib/obstack.in.h (_OBSTACK_CHUNK_SIZE_T) [!__GL_GNULIB_HEADER]:
+ Now long, not unsigned long, since that’s what glibc does.
+
obstack: fix undefined behavior if big alignment
* lib/obstack.c: Include stddef.h, for offsetof.
(align_size_up): New static function.
/* For backward compatibility, glibc limits object sizes to int range. */
# define _OBSTACK_INDEX_T int
# define _OBSTACK_SIZE_T unsigned int
-# define _OBSTACK_CHUNK_SIZE_T unsigned long
+# define _OBSTACK_CHUNK_SIZE_T long int
# define _OBSTACK_CAST(type, expr) ((type) (expr))
# define _OBSTACK_CHUNK_CONTENTS_SIZE 4
#endif