From 5445d8aad0112dab3ed798c39bf6b22f2a4eebd1 Mon Sep 17 00:00:00 2001 From: emersion Date: Thu, 28 Feb 2019 23:15:34 +0100 Subject: meson: enable more compiler warnings --- render/gles2/renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render') diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index 50689ad4..3409d144 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -312,7 +312,7 @@ static bool gles2_read_pixels(struct wlr_renderer *wlr_renderer, glGetError(); // Clear the error flag - unsigned char *p = data + dst_y * stride; + unsigned char *p = (unsigned char *)data + dst_y * stride; uint32_t pack_stride = width * fmt->bpp / 8; if (pack_stride == stride && dst_x == 0 && flags != NULL) { // Under these particular conditions, we can read the pixels with only -- cgit v1.2.3