nouveau: fix pointer-sign warning
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 3 Jul 2020 01:37:45 +0000 (11:37 +1000)
committerMarge Bot <eric+marge@anholt.net>
Sat, 4 Jul 2020 00:32:26 +0000 (00:32 +0000)
Fixes: e630271e0ec3 ("mesa: don't ever set NullBufferObj in gl_vertex_array_binding")
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5730>

src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c

index 8a7d0f4a3387c39ecd0233ede94cbc52ccd1de87..e6274d45cf486f14cc499b838a4c43ec27f855bb 100644 (file)
@@ -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]);