This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/44407] int = int / unsigned int yields unexpected result



------- Comment #3 from rguenth at gcc dot gnu dot org  2010-06-03 22:13 -------
It does

$ gcc-4.3 -S t.c -Wall -Wconversion
t.c: In function ?main?:
t.c:13: warning: conversion to ?unsigned int? from ?int? may change the sign of
the result
t.c:13: warning: conversion to ?int? from ?unsigned int? may change the sign of
the result


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44407


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]