summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2006-10-13 11:16:45 +0000
committerKeith Whitwell <[email protected]>2006-10-13 11:16:45 +0000
commit0dceffce3329be61624922f70ddc1a66296e9634 (patch)
treed9259e934a5bfcb23886e0ca615fe750b9b15c2d /src/mesa/drivers/dri/i965
parentf06b9e4a8d2a5b95cc3c19df564d7a53723ced76 (diff)
Use unsigned long cast for checking pointer alignment, fixes x64 warnings.
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r--src/mesa/drivers/dri/i965/intel_context.h4
1 files 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