Re: [Kicad-developers] BOX2::SetMaximum()

2015-09-14 Thread Simon Richter
Hi, On 14.09.2015 19:10, Mark Roszko wrote: > Weird, its supposed to be 0 for ints. > http://en.cppreference.com/w/cpp/types/numeric_limits/epsilon I was referring to the bit where it says "It is only meaningful if std::numeric_limits::is_integer == false". I think it's not a big problem for in

Re: [Kicad-developers] BOX2::SetMaximum()

2015-09-14 Thread Mark Roszko
Weird, its supposed to be 0 for ints. http://en.cppreference.com/w/cpp/types/numeric_limits/epsilon Is a include missing? I'm staring at the MSVC header and it appears to have the 0 default. On Mon, Sep 14, 2015 at 12:34 PM, Simon Richter wrote: > Hi, > > while investigating an internal compi

[Kicad-developers] BOX2::SetMaximum()

2015-09-14 Thread Simon Richter
Hi, while investigating an internal compiler error[1] in MSVC, I ran across this function. My feeling is that it is broken: For int: top_left = std::numeric_limits::min() / 2 + std::numeric_limits::epsilon(); size = std::numeric_limits::max() - st