]> granicus.if.org Git - postgresql/commit
Consistently use unsigned arithmetic for alignment calculations.
authorNoah Misch <noah@leadboat.com>
Mon, 21 Oct 2013 01:04:52 +0000 (21:04 -0400)
committerNoah Misch <noah@leadboat.com>
Mon, 21 Oct 2013 01:04:52 +0000 (21:04 -0400)
commit709170b790c11b4012004a6baf11a0fc6ec950de
tree5194f18a7586d5612e3eb2b2cce06e4ecaf316ca
parent713a9f210d5cf5d94cc420b01eef5183569402e0
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.
src/backend/access/hash/hashfunc.c
src/include/access/tupmacs.h
src/include/c.h