cvs commit: src/sys/kern sched_ule.c
Jeff Roberson
jeff at FreeBSD.org
Sat Mar 17 18:13:33 UTC 2007
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