From ec8fdf8579d7f95257316d29a6e58ccdf6e5aaba Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Fri, 3 Jul 2020 11:37:45 +1000 Subject: [PATCH] nouveau: fix pointer-sign warning Fixes: e630271e0ec3 ("mesa: don't ever set NullBufferObj in gl_vertex_array_binding") Reviewed-by: Eric Anholt Part-of: --- src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c b/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c index 8a7d0f4a338..e6274d45cf4 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c @@ -346,7 +346,7 @@ vbo_bind_vertices(struct gl_context *ctx, const struct tnl_vertex_array *arrays, sp = (char *)ADD_POINTERS( nouveau_bufferobj_sys(obj), p) + delta; } else { - sp = p + delta; + sp = (char *)(p + delta); } char *dp = nouveau_get_scratch(ctx, n * a->stride, &bo[i], &offset[i]); -- 2.30.2