🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #5144

Bug in Lattice C 5.04 (IBM host)

#5144
From: Bits_of_Magic
Date: Tue, 04 Sep 1990 20:56
21 lines
1007 bytes
I found a major bug in Lattice C 5.04 for the IBM host, which is supposed
to be identical to the native version, but I guess not.  The bug:

LONG value;

switch (value) {
 case 0:
  DoSomething();
  break;
case 0x100000000
 DoFoo();
 break;
}

whether value is 0 or 100000000, DoSomething() executes.  When I looked at
a disassembly from OMD, it was clear that in the 2nd case, the code was
checking for equality to 0!  I am going to call Lattice about this,
and will post further afterwards.

Nicky Robinson
<bits_of_magic@cup.portal.com>
Technical Details
Message-ID: <33535@cup.portal.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!wuarchive!julius.cs.uiuc.edu!apple!portal!cup.portal.com!Bits_of_Magic
References: <^*}%^D+@masalla.fulcrum.bt.co.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!wuarchive!julius.cs.uiuc.edu!apple!portal!cup.portal.com!Bits_of_Magic
From: Bits_of_Magic@cup.portal.com
Newsgroups: comp.sys.amiga.tech
Subject: Bug in Lattice C 5.04 (IBM host)
Message-ID: <33535@cup.portal.com>
Date: 4 Sep 90 20:56:07 GMT
References: <^*}%^D+@masalla.fulcrum.bt.co.uk>
Organization: The Portal System (TM)
Lines: 21