lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] patch to avoid MSVC warning about comparing bools with doubles


From: Greg Chicares
Subject: Re: [lmi] patch to avoid MSVC warning about comparing bools with doubles
Date: Tue, 28 Jul 2009 15:59:18 +0000
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

On 2009-07-25 15:03Z, Vadim Zeitlin wrote:
> 
>  While rebuilding LMI to test the print preview issues discussed in the
> other message I got a new MSVC warning in mec_view.cpp where boolean fields
> are passed to the function "f" which compares them with
> std::numeric_limits<double>::max(). The warning is harmless here, of
> course, but this comparison is still unnecessary, as both bools and also
> ints can never compare equally to this value anyhow

Yet it would be an error to compare std::numeric_limits<double>::max()
to, say, a string.

Fixed 20090728T1555Z.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]