projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02ddd49
)
Fix an overlooked UINT32_MAX.
author
Andrew Gierth
<
[email protected]
>
Wed, 13 Feb 2019 15:57:54 +0000
(15:57 +0000)
committer
Andrew Gierth
<
[email protected]
>
Wed, 13 Feb 2019 15:57:54 +0000
(15:57 +0000)
Replace with PG_UINT32_MAX. Per buildfarm members dory and woodlouse.
src/common/f2s.c
patch
|
blob
|
blame
|
history
diff --git
a/src/common/f2s.c
b/src/common/f2s.c
index 4f36e1a596111fb38069e7bac4780a130940dabf..62432a539e761c1261a1d42a22d5761e50b86ff1 100644
(file)
--- 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 */