public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* if comparison error
@ 2006-05-02 18:19 ra aman
0 siblings, 0 replies; only message in thread
From: ra aman @ 2006-05-02 18:19 UTC (permalink / raw)
To: gcc-bugs
183 yampa /king/staff/raman/ gcc bad.c
184 yampa /king/staff/raman/ a.out
4 4 byte ( 0 < -439 ) 4 4 byte
185 yampa /king/staff/raman/ cat bad.c
#include<stdio.h> /* standard I/O functions etc., also stdin, stdout, stderr
*/
main(argc,argv,envp)
{ int I=-439;
size_t ist=0;
if (ist < I) printf("%d %d byte ( %d < %d ) %d %d byte\n", sizeof(size_t),
sizeof(ist), ist, I, sizeof(int), sizeof(I)); }
This was tried with 3 versions 3.3 to 4. on 2 computers. Same error.
Comparing if ((int)ist < I) eliminates the wrongful print.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-05-02 18:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-02 18:19 if comparison error ra aman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).