[Kstars-devel] KDE/kdeedu/kstars/kstars/skycomponents
Akarsh Simha
akarshsimha at gmail.com
Tue Jul 14 13:17:13 CEST 2009
SVN commit 996428 by asimha:
Applying tropikhajma's patch to fix KStars' build issue due to log10
on Sun Studio Express / Solaris.
Continues to build fine on i386 after patching.
Thanks for the patch!
CCMAIL: kstars-devel at kde.org
BUG: 200093
M +1 -1 starcomponent.cpp
--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/starcomponent.cpp #996427:996428
@@ -263,7 +263,7 @@
// Reducing the slope w.r.t zoom factor to avoid the extremely fast increase in star density with zoom
// that 4.444 gives us (although that is what the derivation gives us)
- float maglim = 3.7 * ( lgz - lgmin ) + 2.222 * log10( Options::starDensity() ) + 3.5;
+ float maglim = 3.7 * ( lgz - lgmin ) + 2.222 * log10( static_cast<float>(Options::starDensity()) ) + 3.5;
return maglim;
More information about the Kstars-devel
mailing list