svn commit: r295833 - head/sys/sys

Justin Hibbits jhibbits at freebsd.org
Sat Feb 20 04:50:20 UTC 2016


On 2/19/16, Bruce Evans <brde at optusnet.com.au> wrote:
> On Sat, 20 Feb 2016, Justin Hibbits wrote:
>
>> Log:
>>  Fix the definition of RM_MAX_END.
>>
>>  Even though casting from signed to unsigned is well-defined in C, it's
>> better to
>>  first cast to the larger unsigned type, then negate.
>
> Casting ~0 is well-defined, but ~0 isn't.
>
> The operation is complementation, not negation.

Yes, brain fart. I stand corrected of course.

- Justin


More information about the svn-src-head mailing list