# HG changeset patch # User frosch # Date 2021-03-21 17:38:51 # Node ID fd4abe5cd86fa5c91b20160abe5162e80da35dbd # Parent 1d88c0ec438b70ae9be11162e1e93e8f3adbf3f7 Fix f0f96e31: [OpenGL] warning: comparison of integer expressions of different signedness. (#8881) diff --git a/src/video/opengl.cpp b/src/video/opengl.cpp --- a/src/video/opengl.cpp +++ b/src/video/opengl.cpp @@ -887,7 +887,7 @@ template static void ClearPixelBuffer(size_t len, T data) { T *buf = reinterpret_cast(_glMapBuffer(GL_PIXEL_UNPACK_BUFFER, GL_READ_WRITE)); - for (int i = 0; i < len; i++) { + for (size_t i = 0; i < len; i++) { *buf++ = data; } _glUnmapBuffer(GL_PIXEL_UNPACK_BUFFER);