constant signed/unsigned comparison warning

Joern Rennecke amylaar@cygnus.co.uk
Thu Oct 2 11:00:00 GMT 1997


> 	#define sizeof(x) ((int) sizeof(x))
> should do what you want sizeof() to do...  (and is as safe as anything
> like that can be said to be.)

Shouldn't this be ptrdiff_t ... int might be too narrow.



More information about the Gcc mailing list