dri/nouveau: Fix type promotion issue on 32bit platforms.

Fixes some VTX protection errors introduced by e89af20926.
This commit is contained in:
Francisco Jerez 2010-10-31 19:00:31 +01:00
parent 6102683b19
commit 453b718552
1 changed files with 1 additions and 1 deletions

View File

@ -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));