From 17da34eb159a98709e5c1971b3f05392d7113aba Mon Sep 17 00:00:00 2001 From: Edgar Velazquez-Armendariz Date: Fri, 5 Oct 2012 01:42:49 -0400 Subject: [PATCH] Fix minor int to float downcasting warnings. --- src/emitters/sun.cpp | 2 +- src/emitters/sunsky.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emitters/sun.cpp b/src/emitters/sun.cpp index 2f32a360..72a638f2 100644 --- a/src/emitters/sun.cpp +++ b/src/emitters/sun.cpp @@ -178,7 +178,7 @@ public: Spectrum *target = (Spectrum *) bitmap->getFloatData(); Spectrum value = m_radiance * (2 * M_PI * (1-std::cos(m_theta))) * - (bitmap->getWidth() * bitmap->getHeight()) + static_cast(bitmap->getWidth() * bitmap->getHeight()) / (2 * M_PI * M_PI * nSamples); for (size_t i=0; igetWidth() * bitmap->getHeight()) + static_cast(bitmap->getWidth() * bitmap->getHeight()) / (2 * M_PI * M_PI * nSamples); for (size_t i=0; i