mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-17 06:04:23 +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;
|
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);
|
return (void *) (((unsigned long) ptr + align) & ~align);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user