Date: Thu, 11 Jan 2018 04:03:11 -0800 From: Eitan Adler <lists@eitanadler.com> To: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: 1 << 31 redux Message-ID: <CAF6rxg=GbfpBfPAAJg0RvpMrWW8p%2B0Ayf_Zd9i7Em2kOijFCjA@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi all, A few years ago I fixed most of the cases where we used 1 << 31 in FreeBSD. This expression is illegal in C. Since then the issue has arisen again. https://reviews.freebsd.org/D13858 fixed most of the non-contrib cases. I'd also like to see if we could find some more general solution, be it a compiler warning, bit set macro, or otherwise. -- Eitan Adler
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF6rxg=GbfpBfPAAJg0RvpMrWW8p%2B0Ayf_Zd9i7Em2kOijFCjA>