From 8e3d590b76222c332d40dfeca81d899e1df5c503 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 28 Mar 2013 19:33:14 +0000 Subject: code cleanup: python/pep8 and double-promotion warnings. --- source/blender/blenkernel/intern/seqeffects.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/blenkernel/intern/seqeffects.c') diff --git a/source/blender/blenkernel/intern/seqeffects.c b/source/blender/blenkernel/intern/seqeffects.c index b6b4501ca5a..5bae967165c 100644 --- a/source/blender/blenkernel/intern/seqeffects.c +++ b/source/blender/blenkernel/intern/seqeffects.c @@ -970,7 +970,7 @@ static void do_sub_effect_byte(float facf0, float facf1, int x, int y, unsigned tempc[2] = max_ff(rt1[2] - fac1 * rt2[2], 0.0f); tempc[3] = max_ff(rt1[3] - fac1 * rt2[3], 0.0f); - if (tempc[3] < 1e-6) + if (tempc[3] < 1e-6f) tempc[3] = 0.0f; premul_float_to_straight_uchar(rt, tempc); @@ -992,7 +992,7 @@ static void do_sub_effect_byte(float facf0, float facf1, int x, int y, unsigned tempc[2] = max_ff(rt1[2] - fac3 * rt2[2], 0.0f); tempc[3] = max_ff(rt1[3] - fac3 * rt2[3], 0.0f); - if (tempc[3] < 1e-6) + if (tempc[3] < 1e-6f) tempc[3] = 0.0f; premul_float_to_straight_uchar(rt, tempc); @@ -1024,7 +1024,7 @@ static void do_sub_effect_float(float facf0, float facf1, int x, int y, float *r rt[2] = max_ff(rt1[2] - fac1 * rt2[2], 0.0f); rt[3] = max_ff(rt1[3] - fac1 * rt2[3], 0.0f); - if (rt[3] < 1e-6) + if (rt[3] < 1e-6f) rt[3] = 0.0f; rt1 += 4; rt2 += 4; rt += 4; @@ -1041,7 +1041,7 @@ static void do_sub_effect_float(float facf0, float facf1, int x, int y, float *r rt[2] = max_ff(rt1[2] - fac3 * rt2[2], 0.0f); rt[3] = max_ff(rt1[3] - fac3 * rt2[3], 0.0f); - if (rt[3] < 1e-6) + if (rt[3] < 1e-6f) rt[3] = 0.0f; rt1 += 4; rt2 += 4; rt += 4; -- cgit v1.2.3