postgrespro.git / summary / log / commit / refs
commit 754ca99314e9e1debe855b0462869ef6e58b7e7a
Author: Andrew Gierth <rhodiumtoad@postgresql.org>
Date: Wed Feb 13 15:57:54 2019 +0000
Fix an overlooked UINT32_MAX.
Replace with PG_UINT32_MAX. Per buildfarm members dory and woodlouse.
src/common/f2s.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/f2s.c b/src/common/f2s.c
index 4f36e1a596..62432a539e 100644
--- a/src/common/f2s.c
+++ b/src/common/f2s.c
@@ -153,7 +153,7 @@ mulShift(const uint32 m, const uint64 factor, const int32 shift)
const uint64 sum = (bits0 >> 32) + bits1;
const uint64 shiftedSum = sum >> (shift - 32);
- Assert(shiftedSum <= UINT32_MAX);
+ Assert(shiftedSum <= PG_UINT32_MAX);
return (uint32) shiftedSum;
#endif /* RYU_32_BIT_PLATFORM */
[parent: 02ddd499322a]