diff options
author | unknown <michal@.(none)> | 2010-04-09 18:05:20 +0200 |
---|---|---|
committer | unknown <michal@.(none)> | 2010-04-09 18:08:17 +0200 |
commit | 7c8763aa6cfc74adf1ea49c2bab25ca17b32575f (patch) | |
tree | bde0d104bd56bdd5af2db678888586994bd2aab8 | |
parent | 9d0086411a104b7cc9297aac0d1f82853118d7bf (diff) |
util: Fix type cast.
-rw-r--r-- | src/gallium/auxiliary/util/u_inlines.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_inlines.h b/src/gallium/auxiliary/util/u_inlines.h index f9cd4e114e..c2f4f05990 100644 --- a/src/gallium/auxiliary/util/u_inlines.h +++ b/src/gallium/auxiliary/util/u_inlines.h @@ -161,7 +161,7 @@ pipe_buffer_map_range(struct pipe_context *pipe, struct pipe_transfer **transfer) { struct pipe_box box; - char *map; + void *map; assert(offset < buffer->width0); assert(offset + length <= buffer->width0); @@ -187,7 +187,7 @@ pipe_buffer_map_range(struct pipe_context *pipe, /* Match old screen->buffer_map_range() behaviour, return pointer * to where the beginning of the buffer would be: */ - return (void *)(map - offset); + return (void *)((char *)map - offset); } |