From 3e2ff0e870585125ea3b06133d693e2fa553dc1b Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Thu, 14 Jun 2018 09:14:47 +0100 Subject: [PATCH] compare doubles to doubles Summary: Should resolve undefined reference to `bool QTest::qCompare error on 5.9 Test Plan: Still compiles/passes Not actually tested on 5.9 Reviewers: #kwin, #plasma Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D13526 --- autotests/integration/scene_qpainter_shadow_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/autotests/integration/scene_qpainter_shadow_test.cpp b/autotests/integration/scene_qpainter_shadow_test.cpp index 196033eb0d..a28e7ea202 100644 --- a/autotests/integration/scene_qpainter_shadow_test.cpp +++ b/autotests/integration/scene_qpainter_shadow_test.cpp @@ -764,10 +764,10 @@ void SceneQPainterShadowTest::testShadowTextureReconstruction() // Check whether we've got right shadow. auto shadowIface = client->surface()->shadow(); QVERIFY(!shadowIface.isNull()); - QCOMPARE(shadowIface->offset().left(), 128); - QCOMPARE(shadowIface->offset().top(), 128); - QCOMPARE(shadowIface->offset().right(), 128); - QCOMPARE(shadowIface->offset().bottom(), 128); + QCOMPARE(shadowIface->offset().left(), 128.0); + QCOMPARE(shadowIface->offset().top(), 128.0); + QCOMPARE(shadowIface->offset().right(), 128.0); + QCOMPARE(shadowIface->offset().bottom(), 128.0); // Get SceneQPainterShadow's texture. QVERIFY(client->effectWindow());