Fix warning introduced in 2c9e3ec9
authorPyry Haulos <phaulos@google.com>
Wed, 15 Mar 2017 19:23:06 +0000 (12:23 -0700)
committerPyry Haulos <phaulos@google.com>
Wed, 15 Mar 2017 21:05:32 +0000 (21:05 +0000)
Change-Id: I42bef21b2cc7274f107e5455dea1e382d8a419f4
(cherry picked from commit d8b452a7533c195b1328918bb696a819542ff044)

modules/gles31/functional/es31fPrimitiveBoundingBoxTests.cpp

index fadeb4b..01cefc8 100644 (file)
@@ -2194,7 +2194,7 @@ deUint8 LineRenderCase::checkLineContinuity (const tcu::ConstPixelBufferAccess&
                        << "Missed pixels: " << missedPixels
                        << tcu::TestLog::EndMessage;
                // allow 10% missing pixels for warning
-               if (missedPixels <= deRoundFloatToInt32(totalPixels * 0.1f))
+               if (missedPixels <= deRoundFloatToInt32((float)totalPixels * 0.1f))
                        errorMask = SCANRESULT_LINE_CONT_WARN_BIT;
                else
                        errorMask =  SCANRESULT_LINE_CONT_ERR_BIT;