Re: [Flightgear-devel] possible bug in oursun.cxx

2009-08-21 Thread Erik Hofman
Torsten Dreyer wrote: > Hi, > > There are some possible floating point exceptions in oursun.cxx: > in SGSun::update(double,double) there is > sun_exp2_punch_through = 2.0/log(visibility); > > visibility is assigned the new_visibility _before_ new_visibility is clamped > to 100 % 45000. Because

[Flightgear-devel] possible bug in oursun.cxx

2009-08-20 Thread Torsten Dreyer
Hi, There are some possible floating point exceptions in oursun.cxx: in SGSun::update(double,double) there is sun_exp2_punch_through = 2.0/log(visibility); visibility is assigned the new_visibility _before_ new_visibility is clamped to 100 % 45000. Because update is called by SGSun::build with a