projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50da22c
)
g3dvl: use pointer_to_uintptr() to silence a cast warning
author
Brian Paul
<brianp@vmware.com>
Fri, 26 Aug 2011 20:16:20 +0000
(14:16 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 26 Aug 2011 20:16:20 +0000
(14:16 -0600)
src/gallium/auxiliary/vl/vl_vlc.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/vl/vl_vlc.h
b/src/gallium/auxiliary/vl/vl_vlc.h
index 17a7b650c09c0ac75581c3e8e07c7e03ba7b38ac..4db1334d6a46976d441a57185a6bfe8c4101ff85 100644
(file)
--- 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;