pgsql: Avoid too-large shift on 32-bit Windows.
pgsql: Avoid too-large shift on 32-bit Windows.
От:
Robert Haas <rhaas@postgresql.org>
Дата:
Avoid too-large shift on 32-bit Windows. Apparently, shifts greater than or equal to the width of the type are undefined, and can surprisingly produce a non-zero value. Amit Kapila, with a comment by me. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/343bb134ea20d3b7286c620c15a067da79cab724 Modified Files -------------- src/backend/storage/ipc/dsm_impl.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)