Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!spdcc!merk!alliant!linus!linus!mbunix!duncant From: duncant@mbunix.mitre.org (Thomson) Newsgroups: comp.sys.amiga.tech Subject: Re: Excruciatingly simple programming question... Message-ID: <115522@linus.mitre.org> Date: 1 Aug 90 00:10:44 GMT References: <2667@mindlink.UUCP> Sender: usenet@linus.mitre.org Lines: 23 This is really a 'C' question more than an amiga question, but I guess that's how this thread started out anyway... In article <2667@mindlink.UUCP> a218@mindlink.UUCP (Charlie Gibbs) writes: > >i.e. explicitly cast those length constants to long, which is what >Write() and Read() are expecting. In fact, it's probably a good >idea to do it anyway. > > (singing) Portability forever... :-) If you've included , then the compiler should know what kind of arguments Write() and Read() are expecting, and it should automatically convert the int to a long int, right? (I'm assuming that there would be a function prototype in the include file.) Is this a weakness of the Manx compiler? By the way, what's the story with Lattice - would it detect/ correct this kind of error? Duncan Thomson -- (Please excuse the typos and garbage caused by line noise.)