From: Brian Paul Date: Sat, 7 Mar 2009 20:23:08 +0000 (-0700) Subject: gallium: use unsigned long to silence warnings with 64-bit build X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=799f55803d15602b10d2bb97ff62792f05ce4de3;p=mesa.git gallium: use unsigned long to silence warnings with 64-bit build --- diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index a5044541459..c805e399de2 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -205,7 +205,7 @@ __memcpy(void *to, const void *from, size_t n) static 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