Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!idallen From: idallen@watmath.UUCP Newsgroups: comp.unix.wizards Subject: Re: bitfields: how to cast (int) into a bit field? Message-ID: <4082@watmath.UUCP> Date: Sun, 21-Dec-86 21:13:25 EST Article-I.D.: watmath.4082 Posted: Sun Dec 21 21:13:25 1986 Date-Received: Mon, 22-Dec-86 02:12:40 EST References: <844@sphinx.UChicago.UUCP> <4746@ism780c.UUCP> Reply-To: idallen@watmath.UUCP (Ian! D. Allen) Distribution: na Organization: U. of Waterloo, Ontario Lines: 7 Summary: How to cast (int) into a bit field? How does one cast an integer into, say, a 6-bit bit field in such a manner that LINT won't complain "conversion may lose accuracy"? How does one create a typedef for a bit field, such that one might use it to perform the above cast? -- -IAN! (Ian! D. Allen) University of Waterloo