fix typo in ALIGN macro

Change-Id: Idaddf65f0b726a158f47639223f4281fd07447a7
This commit is contained in:
Mathias Agopian 2010-06-22 16:15:10 -07:00
parent 741a95cdd3
commit 5c7a083493

View File

@ -339,7 +339,7 @@ try_ashmem:
/*****************************************************************************/
static inline size_t ALIGN(size_t x, size_t align) {
return (x + align-1) & (align-1);
return (x + align-1) & ~(align-1);
}
static int gralloc_alloc(alloc_device_t* dev,