Fix -Wconversion warnings in readpixels tests.
authorJarkko Pöyry <jpoyry@google.com>
Fri, 22 May 2015 04:32:16 +0000 (21:32 -0700)
committerJarkko Pöyry <jpoyry@google.com>
Fri, 22 May 2015 18:12:47 +0000 (11:12 -0700)
Bug: 21161908
Change-Id: Ib9a01e0ebbf34c8f03a176bd93334d23c1384023

modules/gles3/functional/es3fReadPixelsTests.cpp

index d074264..405bc7b 100644 (file)
@@ -353,7 +353,7 @@ TestCase::IterateResult ReadPixelsTest::iterate (void)
        clearColor(reference, pixelData, pixelSize);
 
        const int                                                       rowWidth                = (m_rowLength == 0 ? m_width : m_rowLength);
-       const int                                                       rowPitch                = m_alignment * deCeilFloatToInt32(pixelSize * rowWidth / (float)m_alignment);
+       const int                                                       rowPitch                = m_alignment * deCeilFloatToInt32((float)(pixelSize * rowWidth) / (float)m_alignment);
        const tcu::ConstPixelBufferAccess       resultAccess    = tcu::ConstPixelBufferAccess(format, m_width, m_height, 1, rowPitch, 0, &(pixelData[pixelSize * m_skipPixels + m_skipRows * rowPitch]));
 
        // \note Renderbuffers are never multisampled