mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Fix _align so it works on 64-bit machines.
This commit is contained in:
parent
ad21a5585c
commit
7c8bd3fcd0
@ -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…
Reference in New Issue
Block a user