From 312b6fd713f62e60d36b2bc724f6cf5817c39b6a Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 9 Dec 2019 14:56:53 +0100 Subject: Cleanup: Redundant variable assignment to self Was triggering strict compiler warning. --- source/blender/compositor/operations/COM_MathBaseOperation.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/compositor') diff --git a/source/blender/compositor/operations/COM_MathBaseOperation.cpp b/source/blender/compositor/operations/COM_MathBaseOperation.cpp index d103cc3cf0d..524812ac992 100644 --- a/source/blender/compositor/operations/COM_MathBaseOperation.cpp +++ b/source/blender/compositor/operations/COM_MathBaseOperation.cpp @@ -672,9 +672,9 @@ void MathPingpongOperation::executePixelSampled(float output[4], this->m_inputValue1Operation->readSampled(inputValue1, x, y, sampler); this->m_inputValue2Operation->readSampled(inputValue2, x, y, sampler); - output[0] = output[0] = fabsf( - fractf((inputValue1[0] - inputValue2[0]) / (inputValue2[0] * 2.0f)) * inputValue2[0] * 2.0f - - inputValue2[0]); + output[0] = fabsf(fractf((inputValue1[0] - inputValue2[0]) / (inputValue2[0] * 2.0f)) * + inputValue2[0] * 2.0f - + inputValue2[0]); clampIfNeeded(output); } -- cgit v1.2.3