Content-Length: 257689 | pFad | http://github.com/postgrespro/postgres_cluster/commit/754ca99314e9e1debe855b0462869ef6e58b7e7a

8C Fix an overlooked UINT32_MAX. · postgrespro/postgres_cluster@754ca99 · GitHub
Skip to content

Commit 754ca99

Browse files
committed
Fix an overlooked UINT32_MAX.
Replace with PG_UINT32_MAX. Per buildfarm members dory and woodlouse.
1 parent 02ddd49 commit 754ca99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/f2s.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ mulShift(const uint32 m, const uint64 factor, const int32 shift)
153153
const uint64 sum = (bits0 >> 32) + bits1;
154154
const uint64 shiftedSum = sum >> (shift - 32);
155155

156-
Assert(shiftedSum <= UINT32_MAX);
156+
Assert(shiftedSum <= PG_UINT32_MAX);
157157
return (uint32) shiftedSum;
158158

159159
#endif /* RYU_32_BIT_PLATFORM */

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/754ca99314e9e1debe855b0462869ef6e58b7e7a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy