From 0b2d1badecc48b5cbff5ec088b29c6e9acc5e1d0 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 8 Sep 2019 00:12:26 +1000 Subject: Cleanup: use post increment/decrement When the result isn't used, prefer post increment/decrement (already used nearly everywhere in Blender). --- source/blender/blenlib/intern/math_interp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/blenlib/intern/math_interp.c') diff --git a/source/blender/blenlib/intern/math_interp.c b/source/blender/blenlib/intern/math_interp.c index 14fde18aa52..6277b1cd9dc 100644 --- a/source/blender/blenlib/intern/math_interp.c +++ b/source/blender/blenlib/intern/math_interp.c @@ -687,11 +687,11 @@ void BLI_ewa_filter(const int width, d = 0.0f; zero_v4(result); - for (v = v1; v <= v2; ++v) { + for (v = v1; v <= v2; v++) { const float V = (float)v - V0; float DQ = ac1 + B * V; float Q = (C * V + BU) * V + ac2; - for (u = u1; u <= u2; ++u) { + for (u = u1; u <= u2; u++) { if (Q < (float)(EWA_MAXIDX + 1)) { float tc[4]; const float wt = EWA_WTS[(Q < 0.0f) ? 0 : (unsigned int)Q]; -- cgit v1.2.3