diff options
author | Benjamin Oldenburg <benjamin.oldenburg@ordis.co.th> | 2022-03-29 21:47:49 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-29 10:47:49 -0400 |
commit | c06a340df27bfe045648cdc44d2161428e92ed9a (patch) | |
tree | 922044029ee68648430a43a81ac1c2d0fb8f5851 /cpp/src | |
parent | Fix tabs in MATLAB Makefiles (diff) | |
download | ice-c06a340df27bfe045648cdc44d2161428e92ed9a.tar.bz2 ice-c06a340df27bfe045648cdc44d2161428e92ed9a.tar.xz ice-c06a340df27bfe045648cdc44d2161428e92ed9a.zip |
Fix issue with Clang 13 (#1353)
Closes #1352
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Slice/MD5I.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/Slice/MD5I.cpp b/cpp/src/Slice/MD5I.cpp index 66f4de545bc..271352d1ead 100644 --- a/cpp/src/Slice/MD5I.cpp +++ b/cpp/src/Slice/MD5I.cpp @@ -52,6 +52,7 @@ */ #include <Slice/MD5I.h> +#include <stdint.h> #include <string.h> #ifdef __GNUC__ @@ -172,7 +173,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 (!((reinterpret_cast<uintptr_t>(data)) & 3)) { /* data are properly aligned */ X = (const md5_word_t *)data; } else { |