From 80cc09fe90853ad8eff886abce26c03f6840f0b6 Mon Sep 17 00:00:00 2001 From: Lars Toenning Date: Mon, 15 Jun 2020 21:07:29 +0200 Subject: [PATCH] Fix compiler warning of different signedness --- simgear/canvas/elements/CanvasImage.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/canvas/elements/CanvasImage.cxx b/simgear/canvas/elements/CanvasImage.cxx index 9e23e1f2..bb517099 100644 --- a/simgear/canvas/elements/CanvasImage.cxx +++ b/simgear/canvas/elements/CanvasImage.cxx @@ -850,7 +850,7 @@ namespace canvas void fillRow(GLubyte* row, GLuint pixel, GLuint width, GLuint pixelBytes) { GLubyte* dst = row; - for (int x = 0; x < width; ++x) { + for (GLuint x = 0; x < width; ++x) { memcpy(dst, &pixel, pixelBytes); dst += pixelBytes; }