cvs commit: src/sys/kern sched_ule.c
Jeff Roberson
jroberson at chesapeake.net
Sat Mar 17 19:09:24 UTC 2007
Any language lawyers care to comment on this?
On Sat, 17 Mar 2007, Jeff Roberson wrote:
> 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
>
More information about the cvs-src
mailing list