> "The expression sizeof(object) yields an integer equal to the
> size of the specified object."
>
> Not "unsigned integer". Old habits die hard.
I feel your pain.
We use lint a lot here and it irritates me greatly when it
grumbles about loss of precision in assignment
from sizeof() or nelem() to an int, e.g.
int i;
struct Result Results[4096];
for(i = 0; i < nelem(Results); i++)
memset(&Results[i], 0, sizeof(Result));
I wish I had been in the standards meeting with a big stick when somone
suggested sizeof() returned an unsigned.
No doubt somone will pipe up and explain why its a very good idea, but it
still annoys me.
-Steve