diff options
Diffstat (limited to 'src/utils/sha256.cpp')
-rw-r--r-- | src/utils/sha256.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/sha256.cpp b/src/utils/sha256.cpp index 0da2a18fe..80126479a 100644 --- a/src/utils/sha256.cpp +++ b/src/utils/sha256.cpp @@ -110,10 +110,10 @@ class SHA256Context #define UNPACK32(x, str) \ { \ - *((str) + 3) = (uint8_t) ((x) ); \ - *((str) + 2) = (uint8_t) ((x) >> 8); \ - *((str) + 1) = (uint8_t) ((x) >> 16); \ - *((str) + 0) = (uint8_t) ((x) >> 24); \ + *((str) + 3) = static_cast<uint8_t> ((x) ); \ + *((str) + 2) = static_cast<uint8_t> ((x) >> 8); \ + *((str) + 1) = static_cast<uint8_t> ((x) >> 16); \ + *((str) + 0) = static_cast<uint8_t> ((x) >> 24); \ } #define PACK32(str, x) \ |