Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!mms From: mms@utgpu.UUCP Newsgroups: comp.sys.mac Subject: small LSC ControlMgr.h problem Message-ID: <1987Oct30.230309.12490@gpu.utcs.toronto.edu> Date: Fri, 30-Oct-87 23:03:09 EST Article-I.D.: gpu.1987Oct30.230309.12490 Posted: Fri Oct 30 23:03:09 1987 Date-Received: Sat, 31-Oct-87 15:38:56 EST Reply-To: mms@gpu.utcs.UUCP (John J. Chew III) Organization: The Poslfit Committee Lines: 17 Checksum: 33644 Summary: unsigned char contrlHilite A small problem I found while writing my Very First CDEF (in LSC 2.01)... In the definition of the typedef ControlRecord, field contrlHilite (among others) is of type char. If the control is to be inactive, this field should be set to 255. Unfortunately, if contrlHilite is subsequently compared to 255 or 0xff, the code generated sign-extends contrlHilite but not 255 and therefore does not find them to be equal. I believe contrlHilite should be of type unsigned char and not char. John Chew -- john j. chew (v3.0) poslfit@gpu.utcs.toronto.edu +1 416 463 5403 (300/1200 bps) poslfit@utorgpu.bitnet {cbosgd,decvax,mnetor,utai,utcsri,{allegra,linus}!utzoo}!utgpu!poslfit "Script-G for open, sub-delta for durchschnitt"