Re: Race VT+X11 on -current

From: Ed Maste <emaste_at_freebsd.org>
Date: Mon, 11 May 2015 15:52:23 -0400
On 10 May 2015 at 13:14, Hans Petter Selasky <hps_at_selasky.org> wrote:
>
> Your patch is correct from what I can see. Signed modulus can be creepy
> sometimes! Better if VT_MAXWINDOWS was power of two and we used a bitwise
> AND.

The patch is correct, although signedness doesn't come into play. The
unsigned vw_number just wraps to 2^32-1, which is 3 modulo 12.
Received on Mon May 11 2015 - 17:52:44 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:57 UTC