From 39f5ff2cd2c0fbfbde2a16eeb3be2c1888390dd3 Mon Sep 17 00:00:00 2001 From: Stathis Kamperis Date: Thu, 8 Jan 2009 23:44:53 +0200 Subject: [PATCH] Use fabs() for floats, not abs() --- socg/controlDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/socg/controlDialog.cpp b/socg/controlDialog.cpp index 3598d8c..182dd52 100755 --- a/socg/controlDialog.cpp +++ b/socg/controlDialog.cpp @@ -350,7 +350,7 @@ AGAIN:; za = m_thread.m_data.dequeue(); //qDebug("t = %f\txp = %f\typ = %f\tzp = %f\txa = %f\tya = %f\tza = %f", // t, xp, yp, zp, xa, ya, za); - if (abs(m_t - m_thread.getDurationInSec() * time) < 0.01) { + if (fabs(m_t - m_thread.getDurationInSec() * time) < 0.01) { m_coordsAndAngles.setCoordsAndAngles(xp, yp, zp, xa, ya, za); goto OUT; } -- 2.11.4.GIT