This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/44407] int = int / unsigned int yields unexpected result
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jun 2010 22:13:06 -0000
- Subject: [Bug c/44407] int = int / unsigned int yields unexpected result
- References: <bug-44407-19279@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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