From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <4ff62af94bac2fe7ab0d7c4d7f6ecbda@proxima.alt.za> Date: Tue, 13 Dec 2011 18:01:43 -0500 Message-ID: Subject: Re: [9fans] C compiler error? From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Topicbox-Message-UUID: 4ee524ea-ead7-11e9-9d60-3106f5b1d025 On Tue, Dec 13, 2011 at 5:38 PM, Charles Forsyth wrote: > it's reasonable to use any integer type in a switch, although the compilers > don't currently support it. > it's compatible with the standard, which allows any integer type. i'd cancel > the change request and work round it (add a cast) until > the compilers can be changed to support it. http://codereview.appspot.com/5485063/ is a step toward it. it doesn't generate the prettiest code but i think it works. russ