[Bf-blender-cvs] [312b6fd713f] master: Cleanup: Redundant variable assignment to self

Sergey Sharybin noreply at git.blender.org
Mon Dec 9 14:57:26 CET 2019


Commit: 312b6fd713f62e60d36b2bc724f6cf5817c39b6a
Author: Sergey Sharybin
Date:   Mon Dec 9 14:56:53 2019 +0100
Branches: master
https://developer.blender.org/rB312b6fd713f62e60d36b2bc724f6cf5817c39b6a

Cleanup: Redundant variable assignment to self

Was triggering strict compiler warning.

===================================================================

M	source/blender/compositor/operations/COM_MathBaseOperation.cpp

===================================================================

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);
 }



More information about the Bf-blender-cvs mailing list