From: Keith Whitwell Date: Fri, 13 Oct 2006 11:16:45 +0000 (+0000) Subject: Use unsigned long cast for checking pointer alignment, fixes x64 warnings. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0dceffce3329be61624922f70ddc1a66296e9634;p=mesa.git Use unsigned long cast for checking pointer alignment, fixes x64 warnings. --- 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