From b4a0152e76683dfb170c3e2796e15e1b5b67e2ab Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 11 Apr 2012 08:15:13 +0000 Subject: code cleanup: float formatting was confusing in some cases - eg: (0.,0.,0.) --- source/blender/blenlib/intern/math_base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/blenlib/intern/math_base.c') diff --git a/source/blender/blenlib/intern/math_base.c b/source/blender/blenlib/intern/math_base.c index 9efcb3dbcae..6bb238ac612 100644 --- a/source/blender/blenlib/intern/math_base.c +++ b/source/blender/blenlib/intern/math_base.c @@ -37,8 +37,8 @@ /* from python 3.1 pymath.c */ double copysign(double x, double y) { - /* use atan2 to distinguish -0. from 0. */ - if (y > 0. || (y == 0. && atan2(y, -1.) > 0.)) { + /* use atan2 to distinguish -0.0 from 0.0 */ + if (y > 0.0 || (y == 0.0 && atan2(y, -1.0) > 0.0)) { return fabs(x); } else { -- cgit v1.2.3