hermet pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1d8693d3e908be503aa20526427279bb85216d7c

commit 1d8693d3e908be503aa20526427279bb85216d7c
Author: ChunEon Park <[email protected]>
Date:   Tue Dec 9 16:43:23 2014 +0900

    ecore/animator: code refactoring.
    
    renamed to more meaningful name.
    don't stupid computaion twice.
---
 src/lib/ecore/ecore_anim.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/lib/ecore/ecore_anim.c b/src/lib/ecore/ecore_anim.c
index a59320a..43b67dc 100644
--- a/src/lib/ecore/ecore_anim.c
+++ b/src/lib/ecore/ecore_anim.c
@@ -355,7 +355,7 @@ _cubic_bezier_t_get(double a,
 
     const int LIMIT = 100;
     double current_slope;
-    double tmp;
+    double change;
     double current_x;
     double guess_t = a;
 
@@ -364,9 +364,9 @@ _cubic_bezier_t_get(double a,
          current_slope = _cubic_bezier_slope_get(guess_t, x1, x2);
          if (current_slope == 0.0) return guess_t;
          current_x = _cubic_bezier_calc(guess_t, x1, x2) - a;
-         tmp = current_x / current_slope;
-         guess_t -= current_x / current_slope;
-         if (APPROXIMATE_RANGE(tmp)) break;
+         change = current_x / current_slope;
+         guess_t -= change;
+         if (APPROXIMATE_RANGE(change)) break;
       }
     return guess_t;
 }

-- 


Reply via email to