diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-02 05:26:19 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-02 05:26:19 +0000 |
commit | 08eeecbbbb09e9394d5155ee12e4bd0bd56a2904 (patch) | |
tree | 3d8b3567e03d17161479856fdc32d0774fc8d4f5 /src | |
parent | 45e8d9f87b4d9640d24910664d655fba20d6b035 (diff) | |
download | coreutils-08eeecbbbb09e9394d5155ee12e4bd0bd56a2904.tar.xz |
(ptr_align): Use size_t; in practice, this is just as
good as uintptr_t in checking for alignments, and has fewer
configuration hassles.
Diffstat (limited to 'src')
-rw-r--r-- | src/system.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/system.h b/src/system.h index 16354754a..a24e66f8f 100644 --- a/src/system.h +++ b/src/system.h @@ -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; } |