summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2010-10-31 19:00:31 +0100
committerFrancisco Jerez <[email protected]>2010-10-31 22:07:10 +0100
commit453b71855294508fce8358134f9bf5316043b834 (patch)
tree4495d0d9260bf2e9eb5435c8c6138be7e6c7d40e /src/mesa/drivers
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')
-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 9437fc98788..3d8f43ffb4a 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));