Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site timeinc.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!vax135!timeinc!greenber
From: greenber@timeinc.UUCP (Ross M. Greenberg)
Newsgroups: net.micro.pc
Subject: Warning regarding LATTICE Compiler
Message-ID: <421@timeinc.UUCP>
Date: Sat, 17-Aug-85 14:51:53 EDT
Article-I.D.: timeinc.421
Posted: Sat Aug 17 14:51:53 1985
Date-Received: Tue, 20-Aug-85 05:42:49 EDT
Reply-To: greenber@timeinc.UUCP (Ross M. Greenberg)
Organization: Time, Inc. - New York
Lines: 25
Summary: 

When I upgraded to Lattice 2.15, suddenly some of my code broke.  All
seems to boil down to confusion for define macros:

#define macro  (char *)((long)ptr1 - (long)ptr2)

	function ((long)macro);

(Don't ask why --- you wouldn't believe the project!!)

ended up that I had to change the macro to read:

#define macro	((char *)((long)ptr1 - (long)ptr2))

Notice the extra set of parens (probably a good idea anyway!).

Maybe a new heading:  How has Lattice bitten you?

-- 
------------------------------------------------------------------
Ross M. Greenberg  @ Time Inc, New York 
              --------->{vax135 | ihnp4}!timeinc!greenber<---------

I highly doubt that Time Inc.  would make me their spokesperson.
---