change align_malloc() alignment to uint
authorBrian <brian.paul@tungstengraphics.com>
Tue, 11 Dec 2007 16:09:06 +0000 (09:09 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 11 Dec 2007 16:09:06 +0000 (09:09 -0700)
src/mesa/pipe/p_util.h

index 8984592..b4d1195 100644 (file)
@@ -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