From eb1e8d0b6195b49520097e25065b3806f8a492dd Mon Sep 17 00:00:00 2001 From: Ari Suonpaa Date: Wed, 24 Nov 2021 17:03:44 +0200 Subject: [PATCH] Fix signed integer overflow VK-GL-CTS Issue: 3347 Affects: KHR-GLES31.core.shader_bitfield_operation.bitfieldExtract.* Components: OpenGL ES Change-Id: Ifa35375cc20b54b9e2ff4950d519d0b0dad68812 --- external/openglcts/modules/gles31/es31cShaderBitfieldOperationTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/openglcts/modules/gles31/es31cShaderBitfieldOperationTests.cpp b/external/openglcts/modules/gles31/es31cShaderBitfieldOperationTests.cpp index 43c7276..ce02c42 100644 --- a/external/openglcts/modules/gles31/es31cShaderBitfieldOperationTests.cpp +++ b/external/openglcts/modules/gles31/es31cShaderBitfieldOperationTests.cpp @@ -551,7 +551,7 @@ private: for (int i = 0; i < m_components; ++i) { GLuint expected = - (data->inUvec4[i] >> data->offset) & (data->bits == 32 ? 0xFFFFFFFF : ((1 << data->bits) - 1)); + (data->inUvec4[i] >> data->offset) & (data->bits == 32 ? 0xFFFFFFFF : ((1u << data->bits) - 1)); if (data->outUvec4[i] != expected) { return false; -- 2.7.4