Article View: comp.sys.mac
Article #20885small LSC ControlMgr.h problem
From: mms
Date: Sat, 31 Oct 1987 04:03
Date: Sat, 31 Oct 1987 04:03
17 lines
1309 bytes
1309 bytes
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"
Technical Details
Message-ID:
<1987Oct30.230309.12490@gpu.utcs.toronto.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!mmsShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!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