summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-08-26 14:16:20 -0600
committerBrian Paul <brianp@vmware.com>2011-08-26 14:16:20 -0600
commite3b0e3776646d0367206e4544229622eb22fe9f8 (patch)
treedeb3ed586a6b61c25efcf2be346afb9b5bf448d1 /src/gallium/auxiliary
parent50da22ceb16a7398612a8b5b7036ef2e0b635eef (diff)
downloadexternal_mesa3d-e3b0e3776646d0367206e4544229622eb22fe9f8.zip
external_mesa3d-e3b0e3776646d0367206e4544229622eb22fe9f8.tar.gz
external_mesa3d-e3b0e3776646d0367206e4544229622eb22fe9f8.tar.bz2
g3dvl: use pointer_to_uintptr() to silence a cast warning
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/vl/vl_vlc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/vl/vl_vlc.h b/src/gallium/auxiliary/vl/vl_vlc.h
index 17a7b65..4db1334 100644
--- a/src/gallium/auxiliary/vl/vl_vlc.h
+++ b/src/gallium/auxiliary/vl/vl_vlc.h
@@ -33,6 +33,7 @@
#include <pipe/p_compiler.h>
#include <util/u_math.h>
+#include "util/u_pointer.h"
struct vl_vlc
{
@@ -98,7 +99,7 @@ vl_vlc_init(struct vl_vlc *vlc, const uint8_t *data, unsigned len)
vlc->valid_bits = 0;
/* align the data pointer */
- while((uint64_t)data & 3) {
+ while (pointer_to_uintptr(data) & 3) {
vlc->buffer |= (uint64_t)*data << (56 - vlc->valid_bits);
++data;
--len;