Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!seismo!brl-tgr!internet!"Gary S. Moss From: "Gary@internet.UUCP (AMXBR-VLD-V)" Newsgroups: net.lang.c Subject: Re: Why does S5 lint dislike all casts to long? Message-ID: <5939@brl-tgr.ARPA> Date: Tue, 20-Nov-84 10:59:54 EST Article-I.D.: brl-tgr.5939 Posted: Tue Nov 20 10:59:54 1984 Date-Received: Thu, 22-Nov-84 05:47:45 EST Sender: news@brl-tgr.ARPA Organization: Ballistic Research Lab Lines: 14 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__