From eeaaf6b9b0a7c1575089546f7fa151971685676b Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Tue, 3 Aug 2021 13:01:53 +0100 Subject: [PATCH] gl-renderer: Fix sign confusion in format/modifier query Signed and unsigned integers are not the same thing. Signed-off-by: Daniel Stone --- libweston/renderer-gl/gl-renderer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libweston/renderer-gl/gl-renderer.c b/libweston/renderer-gl/gl-renderer.c index ea98f768..eb056ae3 100644 --- a/libweston/renderer-gl/gl-renderer.c +++ b/libweston/renderer-gl/gl-renderer.c @@ -2862,8 +2862,8 @@ populate_supported_formats(struct weston_compositor *ec, struct weston_drm_format *fmt; int *formats = NULL; uint64_t *modifiers = NULL; - unsigned int num_formats, num_modifiers; - unsigned int i, j; + int num_formats, num_modifiers; + int i, j; int ret = 0; /* Use EGL_EXT_image_dma_buf_import_modifiers to query the