http://d.puremagic.com/issues/show_bug.cgi?id=3918


Don <clugd...@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugd...@yahoo.com.au


--- Comment #1 from Don <clugd...@yahoo.com.au> 2010-03-15 21:07:26 PDT ---
>NaN is supposed to be treated as true when implicitly converted to bool,
because it's not the same as zero.

That's surprising behaviour, I'd have expected that it needs to a non-zero
value.

I don't think implicit conversion float->bool should be legal at all, for
exactly this reason. But obviously its behaviour should be unaffected by -O.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to