diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sha1.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sha1.cpp b/lib/sha1.cpp index 0975287f..5610cd44 100644 --- a/lib/sha1.cpp +++ b/lib/sha1.cpp @@ -233,7 +233,7 @@ void SHA1::Input( const unsigned char *message_array, void SHA1::Input( const char *message_array, unsigned length) { - Input((unsigned char *) message_array, length); + Input(reinterpret_cast<unsigned char *>(const_cast<char *>(message_array)), length); } /* @@ -359,7 +359,7 @@ SHA1& SHA1::operator<<(const unsigned char *message_array) */ SHA1& SHA1::operator<<(const char message_element) { - Input((unsigned char *) &message_element, 1); + Input(reinterpret_cast<unsigned char *>(const_cast<char *>(&message_element)), 1); return *this; } |