tasn pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=c0d2a15d5121465c0f84e3e709c2c92f2b89f4f4

commit c0d2a15d5121465c0f84e3e709c2c92f2b89f4f4
Author: Tom Hacohen <t...@stosb.com>
Date:   Wed Apr 22 13:31:10 2015 +0100

    Spinner: use fabs for floating point absolute value.
---
 src/lib/elm_spinner.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elm_spinner.c b/src/lib/elm_spinner.c
index e0e16a5..90d602a 100644
--- a/src/lib/elm_spinner.c
+++ b/src/lib/elm_spinner.c
@@ -376,7 +376,7 @@ _spin_value(void *data)
    double real_speed = sd->spin_speed;
 
    /* Sanity check: our step size should be at least as large as our rounding 
value */
-   if ((sd->spin_speed != 0.0) && (abs(sd->spin_speed) < sd->round))
+   if ((sd->spin_speed != 0.0) && (fabs(sd->spin_speed) < sd->round))
      {
         WRN("The spinning step is smaller than the rounding value, please 
check your code");
         real_speed = sd->spin_speed > 0 ? sd->round : -sd->round;

-- 


Reply via email to