Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!blake!ogccse!husc6!endor!siegel From: siegel@endor.harvard.edu (Rich Siegel) Newsgroups: comp.sys.mac.programmer Subject: Re: LSP Triviality. Message-ID: <1711@husc6.harvard.edu> Date: 28 Apr 89 12:46:53 GMT References: <10228@orstcs.CS.ORST.EDU> Sender: news@husc6.harvard.edu Reply-To: siegel@endor.UUCP (Rich Siegel) Distribution: usa Organization: Symantec/THINK Technologies, Bedford, MA Lines: 29 In article <10228@orstcs.CS.ORST.EDU> borcelf@jacobs.cs.orst.edu (Fernando Borcel) writes: > >linetype = array[1..80] of byte; The problem is that the so-called "Byte" data type is really a word- sized type; it's a holdover from Lisa Pascal. If you want the correct result, declare both arrays to be arrays of "SignedByte", which is a one-byte type. >error := FSRead(EncRefNum, BytesRead, @FileBuffer^); Just a comment: the expression "@FileBuffer^" is redundant, since FileBuffer is already a pointer. Just cast "FileBuffer" to a Ptr, as in err := FSRead(encRefNum, bytesRead, Ptr(FileBuffer)); --Rich ~~~~~~~~~~~~~~~ Rich Siegel Staff Software Developer Symantec Corporation, Language Products Group Internet: siegel@endor.harvard.edu UUCP: ..harvard!endor!siegel "She told me to make myself comfortable, so I pulled down my pants and sat in the pudding." -Emo Phillips ~~~~~~~~~~~~~~~