From 0dceffce3329be61624922f70ddc1a66296e9634 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Fri, 13 Oct 2006 11:16:45 +0000 Subject: [PATCH] Use unsigned long cast for checking pointer alignment, fixes x64 warnings. --- src/mesa/drivers/dri/i965/intel_context.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_context.h b/src/mesa/drivers/dri/i965/intel_context.h index 4ca356beff8..2df8faef28e 100644 --- a/src/mesa/drivers/dri/i965/intel_context.h +++ b/src/mesa/drivers/dri/i965/intel_context.h @@ -329,8 +329,8 @@ static inline void * __memcpy(void * to, const void * from, size_t n) */ static inline void *do_memcpy( void *dest, const void *src, size_t n ) { - if ( (((unsigned)src) & 63) || - (((unsigned)dest) & 63)) { + if ( (((unsigned long)src) & 63) || + (((unsigned long)dest) & 63)) { return __memcpy(dest, src, n); } else -- 2.30.2