Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!endor!siegel From: siegel@endor.harvard.edu (Rich Siegel) Newsgroups: comp.sys.mac.programmer Subject: Re: Compiling trouble with Think's LSC Message-ID: <2301@husc6.harvard.edu> Date: 27 Jul 89 18:50:52 GMT References: <1814@eds.ericsson.se> Sender: news@husc6.harvard.edu Reply-To: siegel@endor.UUCP (Rich Siegel) Organization: Symantec Language Products Group Lines: 24 In article <1814@eds.ericsson.se> rif_xu@eds.ericsson.se writes: > a) The program below,which sorts primes out, doesn't give > correct results - it even pops out some even numbers ! - > * WARNING: This code assumes that ints are 32 bits This is the problem; in LightspeedC, ints are 16 bits, not 32. R. ~~~~~~~~~~~~~~~ Rich Siegel Staff Software Developer Symantec Corporation, Language Products Group Internet: siegel@endor.harvard.edu UUCP: ..harvard!endor!siegel "When it comes to my health, I think of my body as a temple - or at least a moderately well-managed Presbyterian youth center." - Emo Phillips ~~~~~~~~~~~~~~~