diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-05-03 01:22:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-05-03 01:31:46 +0400 |
commit | 8d16869d833ea2a2bd548c8f7b767dae582c78f2 (patch) | |
tree | 8b4dac3292c5cb5c1c37211150633e6968814bc9 /intern/cycles/device/device_cuda.cpp | |
parent | 43d5e54a799b6823bca31bde17606c591b81d8be (diff) |
Code cleanup: Add -Werror=float-conversion to Cycles
Diffstat (limited to 'intern/cycles/device/device_cuda.cpp')
-rw-r--r-- | intern/cycles/device/device_cuda.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/device/device_cuda.cpp b/intern/cycles/device/device_cuda.cpp index 72453e83864..48bde705979 100644 --- a/intern/cycles/device/device_cuda.cpp +++ b/intern/cycles/device/device_cuda.cpp @@ -1036,7 +1036,7 @@ public: float scaling_factor = (float)target_update_frequency / (float)msec; /* sync at earliest next sample and probably later */ - sync_sample = (sample + 1) + sync_sample * ceil(scaling_factor); + sync_sample = (sample + 1) + sync_sample * (int)ceil(scaling_factor); sync_sample = min(end_sample - 1, sync_sample); // make sure we sync the last sample always |