mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 10:20:09 +01:00
g3dvl: use pointer_to_uintptr() to silence a cast warning
This commit is contained in:
parent
50da22ceb1
commit
e3b0e37766
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue