git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 670b3bc) | patch
Fix more DSA problems uncovered by the buildfarm.
Mon, 5 Dec 2016 15:38:08 +0000 (10:38 -0500)
Mon, 5 Dec 2016 15:38:08 +0000 (10:38 -0500)
commit 88f626f8680fbe93444582317d1adb375111855f
Fix more DSA problems uncovered by the buildfarm.

On 32-bit systems, don't try to use 64-bit DSA pointers, because the
computation of DSA_MAX_SEGMENT_SIZE overflows Size.

Cast 1 to Size before shifting it, so that the compiler doesn't
produce a result of the wrong width.

In passing, change one use of size_t to Size.
src/backend/utils/mmgr/dsa.c diff | blob | blame | history
src/include/utils/dsa.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /