summaryrefslogtreecommitdiff
path: root/lib/md5.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-08-02 05:19:30 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-08-02 05:19:30 +0000
commitaa0a7d5865c74260009f373da4216c2c83866c77 (patch)
treefb01e87f4238953832dc6cda53c68db7b7488b1d /lib/md5.c
parent7d66365bcf0cb0ecf3d2f7d70725cf4b86f3acb5 (diff)
downloadcoreutils-aa0a7d5865c74260009f373da4216c2c83866c77.tar.xz
(UNALIGNED_P): 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 'lib/md5.c')
-rw-r--r--lib/md5.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/md5.c b/lib/md5.c
index 78a1e2bbc..b938e1ca9 100644
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -245,11 +245,7 @@ md5_process_bytes (const void *buffer, size_t len, struct md5_ctx *ctx)
{
#if !_STRING_ARCH_unaligned
# define alignof(type) offsetof (struct { char c; type x; }, x)
-# ifdef UINTPTR_MAX
-# define UNALIGNED_P(p) (((uintptr_t) p) % alignof (md5_uint32) != 0)
-# else
-# define UNALIGNED_P(p) 1
-# endif
+# define UNALIGNED_P(p) (((size_t) p) % alignof (md5_uint32) != 0)
if (UNALIGNED_P (buffer))
while (len > 64)
{