mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
test_common: fix -Wsign-compare warnings (#1759)
In preparation of re-enabling `-Wsign-compare` globally, avoid mixing signed and unsigned integers in comparisons in test_common. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
df3ec8deec
commit
50f9f06323
@@ -1715,7 +1715,7 @@ void * CreateGLRenderbuffer( GLsizei width, GLsizei height,
|
||||
// Reverse and reorder to validate since in the
|
||||
// kernel the read_imagef() call always returns RGBA
|
||||
cl_uchar *p = (cl_uchar *)buffer;
|
||||
for( size_t i = 0; i < (size_t)width * height; i++ )
|
||||
for (GLsizei i = 0; i < width * height; i++)
|
||||
{
|
||||
cl_uchar uc0 = p[i * 4 + 0];
|
||||
cl_uchar uc1 = p[i * 4 + 1];
|
||||
@@ -1733,7 +1733,7 @@ void * CreateGLRenderbuffer( GLsizei width, GLsizei height,
|
||||
// Reverse and reorder to validate since in the
|
||||
// kernel the read_imagef() call always returns RGBA
|
||||
cl_uchar *p = (cl_uchar *)buffer;
|
||||
for( size_t i = 0; i < width * height; i++ )
|
||||
for (GLsizei i = 0; i < width * height; i++)
|
||||
{
|
||||
cl_uchar uc0 = p[i * 4 + 0];
|
||||
cl_uchar uc1 = p[i * 4 + 1];
|
||||
|
||||
Reference in New Issue
Block a user