[Issue 1756] New: comparing a constant to artihmetic expression with floating point types fails

Christopher Wright dhasenan at gmail.com
Mon Dec 31 05:30:05 PST 2007


d-bugmail at puremagic.com wrote:
> http://d.puremagic.com/issues/show_bug.cgi?id=1756
> 
>            Summary: comparing a constant to artihmetic expression with
>                     floating point types fails
>            Product: D
>            Version: 2.008
>           Platform: PC
>         OS/Version: Windows
>             Status: NEW
>           Severity: normal
>           Priority: P2
>          Component: DMD
>         AssignedTo: bugzilla at digitalmars.com
>         ReportedBy: sven.stoenner at googlemail.com
> 
> 
> the direct comparison of a constant to an arithmetic expression does not work
> correctly when using variables:
> 
> // float
> float a = 0.6f, 0.8f;

Is this exactly what you tried?
It should of course be:
float a = 0.6f, b = 0.8f;


More information about the Digitalmars-d-bugs mailing list