Use unsigned long cast for checking pointer alignment, fixes x64 warnings.
authorKeith Whitwell <keith@tungstengraphics.com>
Fri, 13 Oct 2006 11:16:45 +0000 (11:16 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Fri, 13 Oct 2006 11:16:45 +0000 (11:16 +0000)
src/mesa/drivers/dri/i965/intel_context.h

index 4ca356beff8330ec2d9552957a2e95e0483ea47f..2df8faef28eaa4044c279ddd73cad8f868d31eb8 100644 (file)
@@ -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