From 5076ce54be86081ed7f7d36b64e880a2c12c51b2 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Tue, 4 Aug 2020 10:26:07 +0200 Subject: Fix compiler warning about implict cast to double MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I80497efedebed9579882d31d3eda13bd88c80c94 Reviewed-by: MÃ¥rten Nordheim Reviewed-by: Maurice Kalinowski --- tests/auto/corelib/global/qrandomgenerator/tst_qrandomgenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto/corelib/global') diff --git a/tests/auto/corelib/global/qrandomgenerator/tst_qrandomgenerator.cpp b/tests/auto/corelib/global/qrandomgenerator/tst_qrandomgenerator.cpp index f6f558dcd3..0c453cd0e5 100644 --- a/tests/auto/corelib/global/qrandomgenerator/tst_qrandomgenerator.cpp +++ b/tests/auto/corelib/global/qrandomgenerator/tst_qrandomgenerator.cpp @@ -885,7 +885,7 @@ void tst_QRandomGenerator::stdUniformRealDistribution_data() newRow(0, 1); // canonical newRow(0, 200); newRow(0, numeric_limits::max() + 1.); - newRow(0, numeric_limits::max() + 1.); + newRow(0, double(numeric_limits::max()) + 1.); newRow(-1, 1.6); } -- cgit v1.2.3