X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=third_party%2Fsha1.cc;h=a7390b3946d31eb40a978da254b94c37385b0b17;hp=9e9e74bff6c4a25ca724b32f6b3efc9bd5501ca3;hb=5a6aa5c252a70554a6987bfbb721ef7d722e1e20;hpb=42113f2be5d9d3c6f1f2bcedcea3518efe2bdcf2 diff --git a/third_party/sha1.cc b/third_party/sha1.cc index 9e9e74b..a7390b3 100644 --- a/third_party/sha1.cc +++ b/third_party/sha1.cc @@ -154,7 +154,7 @@ sha1_process_bytes (const void *buffer, size_t len, struct sha1_ctx *ctx) { #if !_STRING_ARCH_unaligned # define alignof(type) offsetof (struct { char c; type x; }, x) -# define UNALIGNED_P(p) (((size_t) p) % alignof (md5_uint32) != 0) +# define UNALIGNED_P(p) (1) if (UNALIGNED_P (buffer)) while (len > 64) {