]> Savannah Git Hosting - gnulib.git/commit
obstack: Avoid undefined behaviour.
authorBruno Haible <bruno@clisp.org>
Fri, 1 Dec 2023 18:39:26 +0000 (19:39 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 18 Jan 2024 07:58:00 +0000 (08:58 +0100)
commit4021d386bb017c2c2667c3af6cc518d1cb05f850
tree15eb193326e671a085dd28cc12d69d4a1780e4b8
parenta8a555804f98120f6752d9d351f1e98637fc035f
obstack: Avoid undefined behaviour.

Reported by Alexey Palienko <Alexey.Palienko@cma.se> in
<https://lists.gnu.org/archive/html/bug-m4/2023-02/msg00000.html>.

* lib/obstack.in.h: Include <stdint.h>.
(__BPTR_ALIGN): Remove macro.
(__PTR_ALIGN): For the optimized case, compute the alignment through
uintptr_t, instead of computing NULL + something.
ChangeLog
lib/obstack.h