diff options
author | Timothy Arceri <[email protected]> | 2020-07-03 11:37:45 +1000 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-07-04 00:32:26 +0000 |
commit | ec8fdf8579d7f95257316d29a6e58ccdf6e5aaba (patch) | |
tree | 5828bc598440512c7bd89ef0d1a4ae8df888bb6d /src/mesa | |
parent | b9e163fa67ea27fffd3d2294f4f1e19b57814aeb (diff) |
nouveau: fix pointer-sign warning
Fixes: e630271e0ec3 ("mesa: don't ever set NullBufferObj in gl_vertex_array_binding")
Reviewed-by: Eric Anholt <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5730>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]); |