Date: Sat, 17 Mar 2007 18:13:33 +0000 (UTC) From: Jeff Roberson <jeff@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern sched_ule.c Message-ID: <200703171813.l2HIDXWI008212@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jeff 2007-03-17 18:13:33 UTC FreeBSD src repository Modified files: sys/kern sched_ule.c Log: - Cast the intermediate value in priority computtion back down to unsigned char. Weirdly, casting the 1 constant to u_char still produces a signed integer result that is then used in the % computation. This avoids that mess all together and causes a 0 pri to turn into 255 % 64 as we expect. Reported by: kkenn (about 4 times, thanks) Revision Changes Path 1.190 +1 -1 src/sys/kern/sched_ule.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703171813.l2HIDXWI008212>