OSX build fixes

metadata
Wenzel Jakob 2011-04-15 02:53:06 +02:00
parent bd195d13da
commit a98a1928ff
2 changed files with 2 additions and 2 deletions

View File

@ -267,7 +267,7 @@ protected:
const boost::function<Float (const Vector &)> &pdfFn,
size_t nPts, const Float *in, Float *out) {
#pragma omp parallel for
for (size_t i=0; i<nPts; ++i)
for (int i=0; i<(int) nPts; ++i)
out[i] = pdfFn(sphericalDirection(in[2*i], in[2*i+1])) * std::sin(in[2*i]);
}
private:

View File

@ -191,7 +191,7 @@ public:
inline GaussianFiberDistribution() {}
inline GaussianFiberDistribution(Float stddev) : m_stddev(stddev) {
m_normalization = 1/(std::pow(2*M_PI, 3.0f/2.0f) * m_stddev *
m_normalization = 1/(std::pow(2*M_PI, (Float) 3 / (Float) 2) * m_stddev *
mts_erf(1/(SQRT_TWO * m_stddev)));
m_c1 = 1.0f/mts_erf(1/(SQRT_TWO * m_stddev));