Re: [PATCH] Remove pointless <0 comparison for unsigned variable in fs/fcntl.c

Timur Tabi
2004-11-23T23:09:49Z

Jesper Juhl wrote:

> if pid_t is 16 bit, then the value can never be greater than 0xffff but,
> if pid_t is greater than 16 bit, say 32 bit, then the argument "a" could
> very well contain a value greater than 0xffff and then the comparison
> makes perfect sense.

If pid_t is 32-bit, then what's wrong with the value being greater than
0xFFFF? After all, if pid_t a 32-bit number, that implies that 32-bit
values are acceptable.

--
Timur Tabi
Staff Software Engineer
timur.tabi@ammasso.com