mirror of
https://github.com/postgres/postgres.git
synced 2025-05-09 18:21:05 +03:00
Fix an overlooked UINT32_MAX.
Replace with PG_UINT32_MAX. Per buildfarm members dory and woodlouse.
This commit is contained in:
parent
02ddd49932
commit
754ca99314
@ -153,7 +153,7 @@ mulShift(const uint32 m, const uint64 factor, const int32 shift)
|
|||||||
const uint64 sum = (bits0 >> 32) + bits1;
|
const uint64 sum = (bits0 >> 32) + bits1;
|
||||||
const uint64 shiftedSum = sum >> (shift - 32);
|
const uint64 shiftedSum = sum >> (shift - 32);
|
||||||
|
|
||||||
Assert(shiftedSum <= UINT32_MAX);
|
Assert(shiftedSum <= PG_UINT32_MAX);
|
||||||
return (uint32) shiftedSum;
|
return (uint32) shiftedSum;
|
||||||
|
|
||||||
#endif /* RYU_32_BIT_PLATFORM */
|
#endif /* RYU_32_BIT_PLATFORM */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user