]> 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>
Fri, 1 Dec 2023 18:39:26 +0000 (19:39 +0100)
commite7cd5fb11f665d9e27f01d54672675199cd57f2d
treece6bbf9f113bc987d4e0c8d658798753484b6d0d
parent6016e6766c633b22a393c7f009503419f7982161
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.in.h