pgsql: Avoid too-large shift on 32-bit Windows.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Avoid too-large shift on 32-bit Windows.
Date: 2013-10-30 13:15:12
Message-ID: E1VbVc8-00036s-9g@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2013-10-31 15:10:04 pgsql: Use appendStringInfoString instead of appendStringInfo where pos
Previous Message Tom Lane 2013-10-29 19:34:24 pgsql: Fix old typo in comment.