mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 22:25:04 +00:00
Fix MAX 32 bit build problem described in libgit2/libgit2#2917
This commit is contained in:
parent
5091aff782
commit
c92987d157
@ -58,7 +58,7 @@ GIT_INLINE(bool) git__add_uint64_overflow(uint64_t *out, uint64_t one, uint64_t
|
|||||||
#if (SIZE_MAX == UINT_MAX) && __has_builtin(__builtin_uadd_overflow)
|
#if (SIZE_MAX == UINT_MAX) && __has_builtin(__builtin_uadd_overflow)
|
||||||
# define git__add_sizet_overflow(out, one, two) \
|
# define git__add_sizet_overflow(out, one, two) \
|
||||||
__builtin_uadd_overflow(one, two, out)
|
__builtin_uadd_overflow(one, two, out)
|
||||||
# define git__multiply_sizet_overflow(out, one, two)
|
# define git__multiply_sizet_overflow(out, one, two) \
|
||||||
__builtin_umul_overflow(one, two, out)
|
__builtin_umul_overflow(one, two, out)
|
||||||
#elif (SIZE_MAX == ULONG_MAX) && __has_builtin(__builtin_uaddl_overflow)
|
#elif (SIZE_MAX == ULONG_MAX) && __has_builtin(__builtin_uaddl_overflow)
|
||||||
# define git__add_sizet_overflow(out, one, two) \
|
# define git__add_sizet_overflow(out, one, two) \
|
||||||
|
Loading…
Reference in New Issue
Block a user