Re: svn commit: r295833 - head/sys/sys

2016-02-19 Thread Justin Hibbits
On 2/19/16, Bruce Evans 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. > >

Re: svn commit: r295833 - head/sys/sys

2016-02-19 Thread Bruce Evans
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

svn commit: r295833 - head/sys/sys

2016-02-19 Thread Justin Hibbits
Author: jhibbits Date: Sat Feb 20 01:34:13 2016 New Revision: 295833 URL: https://svnweb.freebsd.org/changeset/base/295833 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