netanim: Bug 2370 - Fails to build from source with GCC 6
authorJohn Abraham <john.abraham.in@gmail.com>
Sun, 10 Apr 2016 15:07:34 +0530
changeset 297 12ffeb1076cf
parent 296 002086a646c6
child 298 14e06da56de9
netanim: Bug 2370 - Fails to build from source with GCC 6
animnode.cpp
--- a/animnode.cpp	Wed Mar 09 11:52:38 2016 -0800
+++ b/animnode.cpp	Sun Apr 10 15:07:34 2016 +0530
@@ -89,7 +89,7 @@
 
       result.setRed ((result.red () + step * index) % 255);
       result.setGreen ((result.blue () + step * index) % 255);
-      result.setBlue (abs ((int)result.green () - step * index) % 255);
+      result.setBlue (((int)result.green () - step * index) % 255);
     }
   if (alpha)
     result.setAlpha (alpha);