Yugo NAGATA <nagata(at)sraoss(dot)co(dot)jp> writes:
> For avoiding undefined behaviours, maybe it is better to use unsigned
> int and bit mask as a following code in Linux does[1][2], though it
> would be unnecessary if they are used properly as in the current
> PostgreSQL code.
I don't think that's an improvement. It would mask buggy calls.
regards, tom lane