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); }