chiark / gitweb /
tripe.h: Make job index be unsigned int, not unsigned short.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 8 Dec 2008 10:41:08 +0000 (10:41 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 8 Dec 2008 20:11:31 +0000 (20:11 +0000)
commitcc921fbabd2a286aa3d1322c54419044f55cfcf2
tree5725f7dbf1d79058a8dc6da4ffb0c4e6fad8d075
parentc8e02c8a4947afa4f9ac20e78a3c8808b3945804
tripe.h: Make job index be unsigned int, not unsigned short.

This is mainly (a) because we don't actually save space by using a
short, and (b) because it shuts up a compiler warning.

The warning is annoying.  The compiler complains that it has proven that
an assertion is always true.  Of course, it's nice when it can prove my
assertions, but they're /meant/ to be provably true!

This particular instance is particularly annoying, since it's only
/trivially/ true in the sense the compiler is warning about as a result
of a coincidence of data-type ranges, which may not hold on other
architectures -- on which the assertion is nontrivial but still
important.

Duh.
server/tripe.h