Article View: comp.sys.mac.programmer.codewarrior
Article #1345Re: [BUG?] CW6, signed chars, comparisons
From: Matt Brunk
Date: Sun, 12 Nov 2000 00:00
Date: Sun, 12 Nov 2000 00:00
27 lines
1877 bytes
1877 bytes
MWRon wrote: > > In article <rbarris-9F1405.11512510112000@news.intelenet.net>, Rob Barris > <rbarris@quicksilver.com> wrote: > > > I mailed this one into Metrowerks support but haven't seen a real > >response yet. Wonder what all you readers think about it. This > >actually caused a bug on some code I was moving from Pro5 to Pro6 on > >Windows. > > This seems to have something to do with chars, I've diiscovered if you > turn on the use unsigned char it will work for you. That is probably > better than redoing your entire code until it is fixed. This is good advice. The compiler is free to treat type char as either signed or unsigned. It's up to the programmer to use type signed char or unsigned char explicitly if that is really what is desired. As long as the OP's code was written with these rules in mind, telling the compiler to treat type char as unsigned should work around the compiler bug. Regards -- Matt Brunk
Technical Details
Message-ID:
<3A0F6C13.C8BFF209@gorge.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<rbarris-9F1405.11512510112000@news.intelenet.net> <mwron-1111001051480001@c243286-a.bcreek1.mi.home.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bcce,c34fc3d37319c86 X-Google-Attributes: gid10bcce,public X-Google-Thread: f635e,c34fc3d37319c86 X-Google-Attributes: gidf635e,public X-Google-Thread: fd047,c34fc3d37319c86 X-Google-Attributes: gidfd047,public From: Matt Brunk <brunk@gorge.net> Subject: Re: [BUG?] CW6, signed chars, comparisons Date: 2000/11/12 Message-ID: <3A0F6C13.C8BFF209@gorge.net> X-Deja-AN: 692947199 Content-Transfer-Encoding: 7bit References: <rbarris-9F1405.11512510112000@news.intelenet.net> <mwron-1111001051480001@c243286-a.bcreek1.mi.home.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsabuse@supernews.com Organization: Posted via Supernews, http://www.supernews.com MIME-Version: 1.0 Reply-To: brunk@gorge.net Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac,codewarrior.windows