code cleanup: quiet all warnings about double promotion (either by changing the type or explicitly casting).

This commit is contained in:
Campbell Barton
2012-06-09 17:45:22 +00:00
parent 0fbb6bff27
commit 43361487ba
11 changed files with 28 additions and 28 deletions

View File

@@ -119,7 +119,7 @@ __device_inline float path_rng(KernelGlobals *kg, RNG *rng, int sample, int dime
else
shift = (*rng & 0xFFFF)/((float)0xFFFF);
return r + shift - floor(r + shift);
return r + shift - floorf(r + shift);
#endif
}