Date: Fri, 19 Feb 2016 22:50:19 -0600 From: Justin Hibbits <jhibbits@freebsd.org> To: Bruce Evans <brde@optusnet.com.au> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r295833 - head/sys/sys Message-ID: <CAHSQbTCoQtbv=DYty9MVt1d4RbEn=hHMig5pWweF2Y4%2BMM8imw@mail.gmail.com> In-Reply-To: <20160220142119.U1712@besplex.bde.org> References: <201602200134.u1K1YDOD016555@repo.freebsd.org> <20160220142119.U1712@besplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2/19/16, Bruce Evans <brde@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHSQbTCoQtbv=DYty9MVt1d4RbEn=hHMig5pWweF2Y4%2BMM8imw>