diff options
author | Thomas Dinges <blender@dingto.org> | 2013-06-27 19:48:16 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2013-06-27 19:48:16 +0400 |
commit | c6ce8de20ef628c454916dbee8b7a655437fd208 (patch) | |
tree | c8b766319821a65e56955e41320a51bc7db3dc5d /intern/cycles/util | |
parent | 00d934471901fb59d805ad75b28a12288655fb14 (diff) |
Code cleanup / Cycles:
* Some cleanup for castings.
Diffstat (limited to 'intern/cycles/util')
-rw-r--r-- | intern/cycles/util/util_math.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/util/util_math.h b/intern/cycles/util/util_math.h index 05ed8a2d3f6..14ebf311a4b 100644 --- a/intern/cycles/util/util_math.h +++ b/intern/cycles/util/util_math.h @@ -1166,7 +1166,7 @@ __device float safe_powf(float a, float b) return 1.0f; if(a == 0.0f) return 0.0f; - if(a < 0.0f && b != (int)b) + if(a < 0.0f && b != float_to_int(b)) return 0.0f; return compatible_powf(a, b); |