Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version nyu B notes v1.5 12/10/84; site csd2.UUCP Path: utzoo!linus!philabs!cmcl2!csd2!dimitrov From: dimitrov@csd2.UUCP (Isaac Dimitrovsky) Newsgroups: net.lang.c Subject: Bug in lint ? Message-ID: <3090005@csd2.UUCP> Date: Tue, 20-Aug-85 15:47:00 EDT Article-I.D.: csd2.3090005 Posted: Tue Aug 20 15:47:00 1985 Date-Received: Fri, 23-Aug-85 05:16:03 EDT Organization: New York University Lines: 29 [] I've run into a possible bug in lint. It can be reproduced on my system (VAX 4.2BSD) by running lint -ap on the program below. This produces: try.c: try.c(5): warning: long assignment may lose accuracy The options a and p are supposed to check for assignments of longs to ints and incompatibilities with the IBM and GCOS dialects of C, respectively. Strangely enough, when I just run lint with the a option or the p option alone, the program goes through with no messages. Any explanations or ideas welcome. main() { long a; int i; a=0; i=1; if ((a & (1L<