1 << 31 redux

Eitan Adler lists at eitanadler.com
Thu Jan 11 12:03:43 UTC 2018


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


More information about the freebsd-hackers mailing list