[Bf-blender-cvs] [1ae30562610] blender-v2.79-release: Cycles: Fix compilation warning

Sergey Sharybin noreply at git.blender.org
Mon Sep 4 14:18:59 CEST 2017


Commit: 1ae30562610c86f7b77df248628e68bb208981ed
Author: Sergey Sharybin
Date:   Mon Sep 4 13:28:15 2017 +0200
Branches: blender-v2.79-release
https://developer.blender.org/rB1ae30562610c86f7b77df248628e68bb208981ed

Cycles: Fix compilation warning

===================================================================

M	intern/cycles/util/util_math.h

===================================================================

diff --git a/intern/cycles/util/util_math.h b/intern/cycles/util/util_math.h
index d28f2ba436b..00783a36afb 100644
--- a/intern/cycles/util/util_math.h
+++ b/intern/cycles/util/util_math.h
@@ -223,7 +223,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)



More information about the Bf-blender-cvs mailing list