diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-21 19:27:40 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-21 19:27:40 +0400 |
commit | 62a73381a7ec63e75960d3c9545c638c85d3b06a (patch) | |
tree | 25d16dfc4c245bacb98c3737c3817d1a52ce8d93 /source/blender/render/intern/source/zbuf.c | |
parent | 1bb7cfded603028db0d52b3c0917900e83b858e6 (diff) |
use fabsf when using floats.
Diffstat (limited to 'source/blender/render/intern/source/zbuf.c')
-rw-r--r-- | source/blender/render/intern/source/zbuf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/render/intern/source/zbuf.c b/source/blender/render/intern/source/zbuf.c index fde25865577..e09529fd8ac 100644 --- a/source/blender/render/intern/source/zbuf.c +++ b/source/blender/render/intern/source/zbuf.c @@ -443,7 +443,7 @@ static void zbuflineAc(ZSpan *zspan, int obi, int zvlnr, const float vec1[3], co mask= zspan->mask; - if (fabs(dx) > fabs(dy)) { + if (fabsf(dx) > fabsf(dy)) { /* all lines from left to right */ if (vec1[0]<vec2[0]) { @@ -597,7 +597,7 @@ static void zbufline(ZSpan *zspan, int obi, int zvlnr, const float vec1[3], cons dx= vec2[0]-vec1[0]; dy= vec2[1]-vec1[1]; - if (fabs(dx) > fabs(dy)) { + if (fabsf(dx) > fabsf(dy)) { /* all lines from left to right */ if (vec1[0]<vec2[0]) { @@ -727,7 +727,7 @@ static void zbufline_onlyZ(ZSpan *zspan, int UNUSED(obi), int UNUSED(zvlnr), con dx= vec2[0]-vec1[0]; dy= vec2[1]-vec1[1]; - if (fabs(dx) > fabs(dy)) { + if (fabsf(dx) > fabsf(dy)) { /* all lines from left to right */ if (vec1[0]<vec2[0]) { |