Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-09-04 14:28:15 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-09-04 14:28:15 +0300
commit885c0a5f909115377bc94bc86e7a9ceac9849346 (patch)
treea731a8a89c25cbe5a2ea429fc9c69e436516c946 /intern
parent33249f698780291a0de276d9df36c1d2473667e6 (diff)
Cycles: Fix compilation warning
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/util/util_math.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/util/util_math.h b/intern/cycles/util/util_math.h
index 348e652eadd..fb04d49bcd9 100644
--- a/intern/cycles/util/util_math.h
+++ b/intern/cycles/util/util_math.h
@@ -224,7 +224,7 @@ ccl_device_inline bool isfinite_safe(float f)
{
/* By IEEE 754 rule, 2*Inf equals Inf */
unsigned int x = __float_as_uint(f);
- return (f == f) && (x == 0 || x == (1 << 31) || (f != 2.0f*f)) && !((x << 1) > 0xff000000u);
+ return (f == f) && (x == 0 || x == (1u << 31) || (f != 2.0f*f)) && !((x << 1) > 0xff000000u);
}
ccl_device_inline float ensure_finite(float v)