Re: Style question: comparison between signed and unsigned?

Mat Hostetter (mat@lcs.mit.edu)
22 Sep 1997 21:20:49 -0400


>>>>> "torvalds" == Linus Torvalds <torvalds@transmeta.com> writes:

torvalds> The problem is not so much your own types - the problem can
torvalds> often be the types of "C things", mainly 'sizeof(x)'.

You're right, so how about this:

#define ssizeof(x) ((ssize_t) sizeof(x))

-Mat