Mesa (master): nouveau: fix pointer-sign warning
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Jul 4 01:00:27 UTC 2020
Module: Mesa
Branch: master
Commit: ec8fdf8579d7f95257316d29a6e58ccdf6e5aaba
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ec8fdf8579d7f95257316d29a6e58ccdf6e5aaba
Author: Timothy Arceri <tarceri at itsqueeze.com>
Date: Fri Jul 3 11:37:45 2020 +1000
nouveau: fix pointer-sign warning
Fixes: e630271e0ec3 ("mesa: don't ever set NullBufferObj in gl_vertex_array_binding")
Reviewed-by: Eric Anholt <eric at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5730>
---
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]);
More information about the mesa-commit
mailing list