diff options
author | imp <imp@FreeBSD.org> | 2005-02-06 21:12:22 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2005-02-06 21:12:22 +0000 |
commit | d79055b325d1f166e95f2c546f39abe82cac6de4 (patch) | |
tree | 606f6d8b39812e32fa4f84f7766414c85686746e /etc | |
parent | 434b0e32d37c93824a31a6f3a0356a3e9f705afd (diff) | |
download | FreeBSD-src-d79055b325d1f166e95f2c546f39abe82cac6de4.zip FreeBSD-src-d79055b325d1f166e95f2c546f39abe82cac6de4.tar.gz |
ccs is a size_t. RAY_CCS_INDEX takes ccs and does math on it,
resulting in a size_t due to C's rules of arithmetic. Rather than
bogusly cast the result to a uint8_t, fix the printf format specifier
to have a 'z' modifier which tells the compiler that the sizes really
do match.
It turns out that change 1.75 was incorrect to assume that this
'really' was a 8bit quantity. It isn't. Although the hardware
appears to limit things to < 256, it would be a bug that should be
caught by debug printf it it were. Casting it to uint8_t would have
lost this useful information.
Aslo add 'z' to a nearby debug statement that's never compiled in.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions