pgsql: Consistently use unsigned arithmetic for alignment calculations.

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Consistently use unsigned arithmetic for alignment calculations.
Date: 2013-10-21 01:07:39
Message-ID: E1VY3y7-0001uG-2q@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Consistently use unsigned arithmetic for alignment calculations.

This avoids an assumption about the signed number representation. It is
anticipated to have no functional changes on supported configurations;
many two's complement assumptions remain elsewhere.

Per a suggestion from Andres Freund.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/709170b790c11b4012004a6baf11a0fc6ec950de

Modified Files
--------------
src/backend/access/hash/hashfunc.c | 2 +-
src/include/access/tupmacs.h | 8 ++++----
src/include/c.h | 10 +++++-----
3 files changed, 10 insertions(+), 10 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2013-10-21 10:32:48 pgsql: Add libpgcommon to backend gettext source files
Previous Message Peter Eisentraut 2013-10-19 17:52:51 pgsql: Add libpgcommon to backend gettext source files