diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-06-09 21:45:22 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-06-09 21:45:22 +0400 |
commit | 43361487bad926a9b32ce879f5b6961154507dfc (patch) | |
tree | 6a91b1e7709fbd85c9b70e735e81db71edb20ab2 /intern/cycles/kernel/kernel_random.h | |
parent | 0fbb6bff27139d66951fe223ff322c609d368a18 (diff) |
code cleanup: quiet all warnings about double promotion (either by changing the type or explicitly casting).
Diffstat (limited to 'intern/cycles/kernel/kernel_random.h')
-rw-r--r-- | intern/cycles/kernel/kernel_random.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_random.h b/intern/cycles/kernel/kernel_random.h index 008ef2061a2..9083b7cbfd7 100644 --- a/intern/cycles/kernel/kernel_random.h +++ b/intern/cycles/kernel/kernel_random.h @@ -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 } |