summaryrefslogtreecommitdiff
path: root/src/mesa/pipe
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-12-11 09:09:06 -0700
committerBrian <brian.paul@tungstengraphics.com>2007-12-11 09:09:06 -0700
commit23ca30e24bbc8390127910c64da4a321ae63ce3a (patch)
tree7a35fd6e7ddc5efffb800f78b365b9f9fea7b4e1 /src/mesa/pipe
parent5b8b542cb2f10c5c39b9db18cd95e553ad06061b (diff)
change align_malloc() alignment to uint
Diffstat (limited to 'src/mesa/pipe')
-rw-r--r--src/mesa/pipe/p_util.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/pipe/p_util.h b/src/mesa/pipe/p_util.h
index 898459293e..b4d1195c9b 100644
--- a/src/mesa/pipe/p_util.h
+++ b/src/mesa/pipe/p_util.h
@@ -117,11 +117,10 @@ REALLOC( void *old_ptr, unsigned old_size, unsigned new_size )
* Return memory on given byte alignment
*/
static INLINE void *
-align_malloc(size_t bytes, unsigned long alignment)
+align_malloc(size_t bytes, uint alignment)
{
#if defined(HAVE_POSIX_MEMALIGN)
void *mem;
-
(void) posix_memalign(& mem, alignment, bytes);
return mem;
#else