mirror of
git://git.sv.gnu.org/coreutils
synced 2026-05-24 01:21:18 -04:00
(ptr_align): Use size_t; in practice, this is just as
good as uintptr_t in checking for alignments, and has fewer configuration hassles.
This commit is contained in:
+1
-1
@@ -810,5 +810,5 @@ ptr_align (void *ptr, size_t alignment)
|
||||
{
|
||||
char *p0 = ptr;
|
||||
char *p1 = p0 + alignment - 1;
|
||||
return p1 - (uintptr_t) p1 % alignment;
|
||||
return p1 - (size_t) p1 % alignment;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user