summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/nouveau
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2010-10-31 19:00:31 +0100
committerFrancisco Jerez <currojerez@riseup.net>2010-10-31 22:07:10 +0100
commit453b71855294508fce8358134f9bf5316043b834 (patch)
tree4495d0d9260bf2e9eb5435c8c6138be7e6c7d40e /src/mesa/drivers/dri/nouveau
parent6102683b191c5306a5ff40978d020393635b7c62 (diff)
dri/nouveau: Fix type promotion issue on 32bit platforms.
Fixes some VTX protection errors introduced by e89af209261.
Diffstat (limited to 'src/mesa/drivers/dri/nouveau')
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c2
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 9437fc9878..3d8f43ffb4 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c
@@ -269,7 +269,7 @@ check_update_array(struct nouveau_array *a, unsigned offset,
if (a->bo == bo) {
if (delta < 0)
- delta = (offset - (long)a->offset) / a->stride;
+ delta = ((int)offset - (int)a->offset) / a->stride;
dirty = (delta < 0 ||
offset != (a->offset + delta * a->stride));