Consistently use unsigned arithmetic for alignment calculations.
Noah Misch <noah@leadboat.com>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/hash/hashfunc.c | modified | +1 −1 |
| src/include/access/tupmacs.h | modified | +4 −4 |
| src/include/c.h | modified | +5 −5 |