Article View: comp.std.c
Article #3739Semantics of relational operators
From: David Raine
Date: Wed, 16 Aug 1995 09:47
Date: Wed, 16 Aug 1995 09:47
13 lines
832 bytes
832 bytes
gcc issues the diagnostic "Semantics of <= have changed in ANSI C, please
use explicit cast" for the following:
unsigned short a = 0;
long b = 0;
if (a <= b) /* gcc expects explicit cast here */
...
6.3.8 seems to yield no information as to why a cast is desirable here.
Could anyone explain this to me?
David.
Technical Details
Message-ID:
<40ses9$5o6@sndsu1.sedalia.sinet.slb.com>Path:
arc1-ca.pugleaf.net!news.sinet.slb.com!newsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.sinet.slb.com!news From: David Raine <raine@ferndown.ate.slb.com> Newsgroups: comp.std.c Subject: Semantics of relational operators Date: 16 Aug 1995 09:47:53 GMT Organization: Schlumberger Ltd Message-ID: <40ses9$5o6@sndsu1.sedalia.sinet.slb.com> NNTP-Posting-Host: pimento.ferndown.ate.slb.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 1.1N (X11; I; SunOS 4.1.3 sun4c) X-URL: news:comp.std.c