1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-06 00:29:44 +02:00

(UNALIGNED_P): 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:
Paul Eggert
2004-08-02 05:22:22 +00:00
parent 5682fe455f
commit deda01980f
+1 -5
View File
@@ -243,11 +243,7 @@ sha_process_bytes (const void *buffer, size_t len, struct sha_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)
{