From e3b0e3776646d0367206e4544229622eb22fe9f8 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 26 Aug 2011 14:16:20 -0600 Subject: [PATCH] g3dvl: use pointer_to_uintptr() to silence a cast warning --- src/gallium/auxiliary/vl/vl_vlc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/vl/vl_vlc.h b/src/gallium/auxiliary/vl/vl_vlc.h index 17a7b650c09..4db1334d6a4 100644 --- a/src/gallium/auxiliary/vl/vl_vlc.h +++ b/src/gallium/auxiliary/vl/vl_vlc.h @@ -33,6 +33,7 @@ #include #include +#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; -- 2.30.2