summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util
diff options
context:
space:
mode:
authorLuca Barbieri <[email protected]>2010-04-18 17:35:17 +0200
committerLuca Barbieri <[email protected]>2010-04-18 17:35:17 +0200
commitcea7b9f937dd8d987dc48e636adf83a829897a28 (patch)
tree3fd04fbae0fa372bd60af846d2186b582b1d7338 /src/gallium/auxiliary/util
parent69d8b6d5fb1f87411c2a7c67142850f1aafe1b4d (diff)
u_surfaces: silence warning
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r--src/gallium/auxiliary/util/u_surfaces.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_surfaces.c b/src/gallium/auxiliary/util/u_surfaces.c
index 3a0539ceb47..056b8f23418 100644
--- a/src/gallium/auxiliary/util/u_surfaces.c
+++ b/src/gallium/auxiliary/util/u_surfaces.c
@@ -68,7 +68,7 @@ util_surfaces_do_detach(struct util_surfaces *us, struct pipe_surface *ps)
struct pipe_resource *pt = ps->texture;
if(pt->target == PIPE_TEXTURE_3D || pt->target == PIPE_TEXTURE_CUBE)
{ /* or 2D array */
- unsigned key = ((ps->zslice + ps->face) << 8) | ps->level;
+ void* key = (void*)(((ps->zslice + ps->face) << 8) | ps->level);
util_hash_table_remove(us->u.table, key);
}
else