On Fri, Feb 14, 2020 at 5:33 AM Konstantin Belousov <kostik...@gmail.com> wrote: > On Thu, Feb 13, 2020 at 07:05:19PM +0000, Li-Wen Hsu wrote: > > -#define RANDOM_MAX ((1<<31) - 1) > > +#define RANDOM_MAX (((long)1<<31) - 1) > This still gives UB on ILP32 platforms. I believe the better fix would be > (1u << 31) - 1.
Thanks for pointing this out. It is fixed this in r357904. Li-Wen _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"