From dedf04aa43802155f0874d34047ffaa6aa05672b Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 30 Nov 2011 19:15:37 -0600 Subject: Fixed two casts that are errors with gcc 4.7 --- lib/sha1.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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(const_cast(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(const_cast(&message_element)), 1); return *this; } -- cgit v1.2.3