[Bug target/79366] wrong result in cast to unsigned int
bernd.edlinger at hotmail dot de
gcc-bugzilla@gcc.gnu.org
Fri Feb 3 20:45:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79366
--- Comment #4 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
Ah, I see, you mean C89:
3.2.1.3 Floating and integral
When a value of floating type is converted to integral type, the
fractional part is discarded. If the value of the integral part
cannot be represented by the integral type, the behavior is
undefined. /23/
More information about the Gcc-bugs
mailing list