From cebb0698e83059015cc7ef93f6871e10f938e808 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 10 Feb 2012 20:05:39 -1000 Subject: Corrected a cast in sha1.cpp --- lib/sha1.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lib') diff --git a/lib/sha1.cpp b/lib/sha1.cpp index 5610cd44..1048b157 100644 --- a/lib/sha1.cpp +++ b/lib/sha1.cpp @@ -552,14 +552,14 @@ void SHA1::PadMessage() /* * Store the message length as the last 8 octets */ - Message_Block[56] = static_cast((Length_High >> 24) & 0xFF); - Message_Block[57] = static_cast((Length_High >> 16) & 0xFF); - Message_Block[58] = static_cast((Length_High >> 8) & 0xFF); - Message_Block[59] = static_cast((Length_High) & 0xFF); - Message_Block[60] = static_cast((Length_Low >> 24) & 0xFF); - Message_Block[61] = static_cast((Length_Low >> 16) & 0xFF); - Message_Block[62] = static_cast((Length_Low >> 8) & 0xFF); - Message_Block[63] = static_cast((Length_Low) & 0xFF); + Message_Block[56] = static_cast((Length_High >> 24) & 0xFF); + Message_Block[57] = static_cast((Length_High >> 16) & 0xFF); + Message_Block[58] = static_cast((Length_High >> 8) & 0xFF); + Message_Block[59] = static_cast((Length_High) & 0xFF); + Message_Block[60] = static_cast((Length_Low >> 24) & 0xFF); + Message_Block[61] = static_cast((Length_Low >> 16) & 0xFF); + Message_Block[62] = static_cast((Length_Low >> 8) & 0xFF); + Message_Block[63] = static_cast((Length_Low) & 0xFF); ProcessMessageBlock(); } -- cgit v1.2.3