From 638ea76205115934d300d714070e956995bb2e92 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jarkko=20P=C3=B6yry?= Date: Thu, 21 May 2015 21:32:16 -0700 Subject: [PATCH] Fix -Wconversion warnings in readpixels tests. Bug: 21161908 Change-Id: Ib9a01e0ebbf34c8f03a176bd93334d23c1384023 --- modules/gles3/functional/es3fReadPixelsTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gles3/functional/es3fReadPixelsTests.cpp b/modules/gles3/functional/es3fReadPixelsTests.cpp index d074264..405bc7b 100644 --- a/modules/gles3/functional/es3fReadPixelsTests.cpp +++ b/modules/gles3/functional/es3fReadPixelsTests.cpp @@ -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 -- 2.7.4