Article View: comp.sys.mac.programmer.codewarrior
Article #1337Re: [BUG?] CW6, signed chars, comparisons
From: MWRon
Date: Tue, 14 Nov 2000 00:00
Date: Tue, 14 Nov 2000 00:00
22 lines
1699 bytes
1699 bytes
In article <rbarris-6FA5D9.13581513112000@news.intelenet.net>, Rob Barris <rbarris@quicksilver.com> wrote: > The above code prints "not less" if kLimit is anything from 129 to >255 inclusive. Once I change kLimit to 256 or higher it prints "less". >(CW6, Windows x86 compiler). The problem was that the x86 compiler was trying to get around this implicit promotion to int by restoring the comparison to compare chars, but it considered 128..255 to be unsigned chars. This will be fixed in the next release. Metrowerks apologizes for this inconvenience. Ron -- CodeWarrior PersonalJava Edtion The speed, integration, and flexibility of the product are truly impressive. Java Report Online http://www.javareport.com/html/from_pages/product_review.cfm?articleID=1616 Metrowerks "Software Starts Here" MWRon@metrowerks.com
Technical Details
Message-ID:
<mwron-1411001002580001@c1161032-b.bcreek1.mi.home.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<rbarris-9F1405.11512510112000@news.intelenet.net> <mwron-1111001051480001@c243286-a.bcreek1.mi.home.com> <3A0F6C13.C8BFF209@gorge.net> <rbarris-484498.22494212112000@news.irvn1.occa.home.com> <rbarris-6FA5D9.13581513112000@news.intelenet.net>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: mwron@metrowerks.com (MWRon) Subject: Re: [BUG?] CW6, signed chars, comparisons Date: 2000/11/14 Message-ID: <mwron-1411001002580001@c1161032-b.bcreek1.mi.home.com> X-Deja-AN: 693516875 References: <rbarris-9F1405.11512510112000@news.intelenet.net> <mwron-1111001051480001@c243286-a.bcreek1.mi.home.com> <3A0F6C13.C8BFF209@gorge.net> <rbarris-484498.22494212112000@news.irvn1.occa.home.com> <rbarris-6FA5D9.13581513112000@news.intelenet.net> Organization: Metrowerks Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac,codewarrior.windows