summaryrefslogtreecommitdiff
path: root/src/md5.c
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2024-07-28 16:35:51 +0200
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-08-07 16:50:43 +0200
commit4d51150ca0aae979718ac10030df85421b763cd1 (patch)
treea824a83feefca6695fbe1072b3d724290b07af1f /src/md5.c
parenta9950b3aca2a264e0ee1da1e2a29d3be11e6606c (diff)
Make Dillo C99 standard compliant
Reviewed-by: dogma
Diffstat (limited to 'src/md5.c')
-rw-r--r--src/md5.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/md5.c b/src/md5.c
index 7b7d4e94..7af79d84 100644
--- a/src/md5.c
+++ b/src/md5.c
@@ -63,6 +63,7 @@
#include "md5.h"
#include <string.h>
+#include <stdint.h>
#undef BYTE_ORDER /* 1 = big-endian, -1 = little-endian, 0 = unknown */
#ifdef ARCH_IS_BIG_ENDIAN
@@ -171,7 +172,7 @@ md5_process(md5_state_t *pms, const md5_byte_t *data /*[64]*/)
* On little-endian machines, we can process properly aligned
* data without copying it.
*/
- if (!((data - (const md5_byte_t *)0) & 3)) {
+ if (((uintptr_t) data & 3) == 0) {
/* data are properly aligned */
X = (const md5_word_t *)data;
} else {