Why does S5 lint dislike all casts to long?

Gary@internet.UUCP (AMXBR-VLD-V) moss at Brl-Vld.ARPA
Wed Nov 21 01:59:54 AEST 1984


How about declaring ints that are always positive as unsigned...

main()
	{
	unsigned	b = 0;
	long		l;

	l = b;
	}

Agreed, sometimes lint is dead wrong.  Sometimes I just comment the code
with something to the effect that lint will give the following bogus
message here.
__Moss__



More information about the Comp.lang.c mailing list