From 37f4e51127081f393743b5023f61ec48674cf7a2 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Mon, 22 Nov 2010 20:37:18 +0100 Subject: tst_qthread: fix compilation --- tests/auto/qthread/tst_qthread.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/auto/qthread/tst_qthread.cpp b/tests/auto/qthread/tst_qthread.cpp index 85b8f04..b0efb5a 100644 --- a/tests/auto/qthread/tst_qthread.cpp +++ b/tests/auto/qthread/tst_qthread.cpp @@ -997,7 +997,8 @@ void tst_QThread::QTBUG15378_exitAndExec() thread.exit(556); thread.sem1.release(); //should exit the first loop thread.sem2.acquire(); - QCOMPARE(int(thread.value), 556); + int v = thread.value; + QCOMPARE(v, 556); //test that the thread is running by executing queued connected signal there Syncronizer sync1; -- cgit v0.12