]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: Fix ptrdiff_t for x86_64
authorRichard Weinberger <richard@nod.at>
Fri, 2 Aug 2024 10:08:43 +0000 (12:08 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 15 Aug 2024 22:14:36 +0000 (16:14 -0600)
commitc17b2a05dd50a3ba437e6373093a0d6a359cdee0
tree510c31373f30f28ce0d63d25b7d18300a58f0e32
parent1779a58c66a8229ebc18c08c11f9c7e71b3fd982
x86: Fix ptrdiff_t for x86_64

sbrk() assumes ptrdiff_t is large enough to enlarge/shrink the heap
by LONG_MIN/LONG_MAX.
So, use the long type, also to match the rest of the Linux ecosystem.

Signed-off-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/x86/include/asm/posix_types.h