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:
parent
f61a38e85a
commit
c2e3b0e448
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user