From ddb8120e03e83b1d45e7e69869a55134dc0060fa Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 26 Oct 2007 22:11:08 +0000 Subject: [PATCH] fix for msvc --- source/blender/nodes/intern/CMP_nodes/CMP_tonemap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_tonemap.c b/source/blender/nodes/intern/CMP_nodes/CMP_tonemap.c index b7c0475884b..cd617eca5c5 100644 --- a/source/blender/nodes/intern/CMP_nodes/CMP_tonemap.c +++ b/source/blender/nodes/intern/CMP_nodes/CMP_tonemap.c @@ -57,7 +57,7 @@ static float avgLogLum(CompBuf *src, float* auto_key, float* Lav, float* Cav) } *Lav *= sc; fRGB_mult(Cav, sc); - maxl = logf(maxl + 1e-5f), minl = logf(minl + 1e-5f), avl = lsum*sc; + maxl = logf(maxl + 1e-5f); minl = logf(minl + 1e-5f); avl = lsum*sc; *auto_key = (maxl > minl) ? ((maxl - avl) / (maxl - minl)) : 1.f; return expf(avl); }