1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-30 01:47:56 +03:00

Fix _align so it works on 64-bit machines.

This commit is contained in:
Patrick Caulfield 2002-03-12 15:27:51 +00:00
parent f61a38e85a
commit c2e3b0e448

View File

@ -131,9 +131,10 @@ struct target *create_target(uint64_t start,
return NULL;
}
static void *_align(void *ptr, unsigned int align)
static void *_align(void *ptr, unsigned int a)
{
align--;
register unsigned long align = --a;
return (void *) (((unsigned long) ptr + align) & ~align);
}