From 023062435918dca66281a98ca9c23bf53dcbea74 Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 21 Mar 2021 18:38:51 +0100 Subject: Fix f0f96e31: [OpenGL] warning: comparison of integer expressions of different signedness. (#8881) --- src/video/opengl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/video') diff --git a/src/video/opengl.cpp b/src/video/opengl.cpp index d142abfea..18c71dd29 100644 --- 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); -- cgit v1.2.3-70-g09d2