diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-01 07:20:54 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-01 07:26:18 +0400 |
commit | 13ea967cce4032564cfbbfe3010b538486f36524 (patch) | |
tree | fff7d2eaddd8bc1b6034f76729bb34c12c555607 /source/blender/blenkernel/intern/seqeffects.c | |
parent | 315d85faa1b4f58a91041030dcac70085808c038 (diff) |
Code cleanup: correct abs use and quiet warnings
Diffstat (limited to 'source/blender/blenkernel/intern/seqeffects.c')
-rw-r--r-- | source/blender/blenkernel/intern/seqeffects.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/seqeffects.c b/source/blender/blenkernel/intern/seqeffects.c index 0d05966dfa5..145b6954eb0 100644 --- a/source/blender/blenkernel/intern/seqeffects.c +++ b/source/blender/blenkernel/intern/seqeffects.c @@ -1501,8 +1501,8 @@ static float check_zone(WipeZone *wipezone, int x, int y, Sequence *seq, float f pointdist = sqrt(temp1 * temp1 + temp1 * temp1); temp2 = sqrt((halfx - x) * (halfx - x) + (halfy - y) * (halfy - y)); - if (temp2 > pointdist) output = in_band(hwidth, fabs(temp2 - pointdist), 0, 1); - else output = in_band(hwidth, fabs(temp2 - pointdist), 1, 1); + if (temp2 > pointdist) output = in_band(hwidth, fabsf(temp2 - pointdist), 0, 1); + else output = in_band(hwidth, fabsf(temp2 - pointdist), 1, 1); if (!wipe->forward) output = 1 - output; |