[Bf-blender-cvs] [242217f] master: Code cleanup: float<>double promotion

Campbell Barton noreply at git.blender.org
Fri Dec 13 17:21:52 CET 2013


Commit: 242217f8a308736e603d8abfec53fc3c0647bb7d
Author: Campbell Barton
Date:   Sat Dec 14 03:21:23 2013 +1100
http://developer.blender.org/rB242217f8a308736e603d8abfec53fc3c0647bb7d

Code cleanup: float<>double promotion

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

M	source/blender/imbuf/intern/divers.c

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

diff --git a/source/blender/imbuf/intern/divers.c b/source/blender/imbuf/intern/divers.c
index a3647c7..e33f4d4 100644
--- a/source/blender/imbuf/intern/divers.c
+++ b/source/blender/imbuf/intern/divers.c
@@ -132,7 +132,7 @@ MINLINE float dither_random_value(float s, float t)
 	copy_v2_fl2(st, s, t);
 
 	value = sinf(dot_v2v2(st, vec)) * 43758.5453f;
-	return value - floor(value);
+	return value - floorf(value);
 }
 
 /************************* Generic Buffer Conversion *************************/




More information about the Bf-blender-cvs mailing list