Path: utzoo!attcan!uunet!wuarchive!zaphod.mps.ohio-state.edu!ub!dsinc!bagate!tci!mitchell From: mitchell@tci.UUCP (Rob Mitchell) Newsgroups: comp.sys.mac.programmer Subject: Known Symantec Think C 4.01 bug and work-around Message-ID: <514@tci.UUCP> Date: 22 Oct 90 21:39:37 GMT Distribution: comp Organization: Technology Concepts, Inc. Sudbury Mass. Lines: 38 Subj: Known Symantec Think C 4.01 bug and work-around Date: 22-Oct-1990 Auth: Rob Mitchell, Technology Concepts Inc. BUG: LLastClick, of List Manager routines, returns a long instead of a Cell type as defined in Inside Mac. BUGGY CODE: ... Cell theCell; ListHandle myList; /* compiler generates illegal * union/struct operation */ theCell = LLastClick (myList); ... SOLUTION: Stick return of LLastClick into a long and cast long to Cell type. SOLUTION CODE: ... Cell theCell; ListHandle myList; long tLong; tLong = LLastClick (myList); theCell = *(Cell *) &tLong; ... IN CLOSING: Symantec's Technial Support staff took all of 30 seconds to analayze the problem and offer the solution. I'm really impressed by the service and quality of Symantec.