|Interesting Compiler Bug
|Page 1 of 1|
|Author:||Corun [ Mon Feb 15, 2010 10:56 am ]|
|Post subject:||Interesting Compiler Bug|
Hiya, found an interesting compiler bug. I couldn't find anywhere to submit it. So, here it is:
So the code is
Which gets compiled in to something like this:
As you can see, this reduces to just the function returning (0.03 >= 0.03) which, assuming no float failure, is always true. So the function always returns false.
I'm pretty sure this is a compiler bug, and a weird one at that. Any ideas what's going on?
|Page 1 of 1||All times are UTC - 5 hours [ DST ]|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group