From ec43408d44aff95d8e5bfe2bb976b39906c8f6b5 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 29 Nov 2011 08:51:44 +0100 Subject: Fix compilation of qeasingcurve autotest on Windows. MSVC cannot decide on an overload for pow(). Change-Id: Ied3fbc0de403774d9f85738852cf671ce42cd1c1 Reviewed-by: Jason McDonald --- tests/auto/corelib/tools/qeasingcurve/tst_qeasingcurve.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto/corelib/tools/qeasingcurve') diff --git a/tests/auto/corelib/tools/qeasingcurve/tst_qeasingcurve.cpp b/tests/auto/corelib/tools/qeasingcurve/tst_qeasingcurve.cpp index 41590f1875..612994aa80 100644 --- a/tests/auto/corelib/tools/qeasingcurve/tst_qeasingcurve.cpp +++ b/tests/auto/corelib/tools/qeasingcurve/tst_qeasingcurve.cpp @@ -753,7 +753,7 @@ void tst_QEasingCurve::testCbrtFloat() const float t_cubic = t * t * t; t = t * (t_cubic + f + f) / (t_cubic + t_cubic + f); - float expected = pow(f, 1.0/3.0); + float expected = pow(f, float(1.0/3.0)); const qreal error = qAbs(expected - t); -- cgit v1.2.3