svn commit: r357867 - head/tests/sys/net
Li-Wen Hsu
lwhsu at freebsd.org
Fri Feb 14 09:29:28 UTC 2020
On Fri, Feb 14, 2020 at 5:33 AM Konstantin Belousov <kostikbel at 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
More information about the svn-src-all
mailing list