Path: utzoo!attcan!uunet!mcvax!enea!kth!sics!sics.se!jw From: jw@obelisk.sics.se (Johan Widen) Newsgroups: comp.sys.amiga Subject: Bug in mg2a (macro.c)? Message-ID: Date: 19 Jun 88 18:39:16 GMT Sender: news@sics.se Organization: Swedish Institute of Computer Science, Kista Lines: 30 The lattice compiler complains about the following line in macro.c int flag, num; if(macrodef || ! (macrocount >= MAXMACRO && macro[MAXMACRO].m_funct != finishmacro)) return FALSE; if(macrocount == 0) return TRUE; inmacro = TRUE; The problem is that macro is that the last element of macro[] is macro[MAXMACRO - 1] I'm not sure what the correct fix is. I just changed the line to read int flag, num; if(macrodef || ! (macrocount >= MAXMACRO && ! macro[MAXMACRO - 1].m_funct != finishmacro)) return FALSE; if(macrocount == 0) return TRUE; inmacro = TRUE; but this may be an incorrect fix. -- Johan Widen SICS, PO Box 1263, S-164 28 KISTA, SWEDEN Tel: +46 8 752 15 32 Ttx: 812 61 54 SICS S Fax: +46 8 751 72 30 Internet: jw@sics.se or {mcvax,munnari,ukc,unido}!enea!sics.se!jw