diff options
Diffstat (limited to 'source/blender/blenlib/intern/math_base.c')
-rw-r--r-- | source/blender/blenlib/intern/math_base.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/math_base.c b/source/blender/blenlib/intern/math_base.c index 67c2a989582..f2df36202fe 100644 --- a/source/blender/blenlib/intern/math_base.c +++ b/source/blender/blenlib/intern/math_base.c @@ -40,7 +40,8 @@ double copysign(double x, double y) /* use atan2 to distinguish -0. from 0. */ if (y > 0. || (y == 0. && atan2(y, -1.) > 0.)) { return fabs(x); - } else { + } + else { return -fabs(x); } } |