From 800e6ee52fd32e0b129cbccd811166d7e215e6ad Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Fri, 31 May 2013 22:34:34 +0000 Subject: Move "unsigned char" -> "uint8_t". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183051 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/MD5.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lib/Support/MD5.cpp') diff --git a/lib/Support/MD5.cpp b/lib/Support/MD5.cpp index 6cd040bd1b..ce99ab6abc 100644 --- a/lib/Support/MD5.cpp +++ b/lib/Support/MD5.cpp @@ -72,8 +72,8 @@ namespace llvm { /// \brief This processes one or more 64-byte data blocks, but does NOT update ///the bit counters. There are no alignment requirements. -const unsigned char *MD5::body(ArrayRef Data) { - const unsigned char *ptr; +const uint8_t *MD5::body(ArrayRef Data) { + const uint8_t *ptr; MD5_u32plus a, b, c, d; MD5_u32plus saved_a, saved_b, saved_c, saved_d; unsigned long Size = Data.size(); @@ -184,10 +184,10 @@ MD5::MD5() } /// Incrementally add \p size of \p data to the hash. -void MD5::update(ArrayRef Data) { +void MD5::update(ArrayRef Data) { MD5_u32plus saved_lo; unsigned long used, free; - const unsigned char *Ptr = Data.data(); + const uint8_t *Ptr = Data.data(); unsigned long Size = Data.size(); saved_lo = lo; @@ -208,11 +208,11 @@ void MD5::update(ArrayRef Data) { memcpy(&buffer[used], Ptr, free); Ptr = Ptr + free; Size -= free; - body(ArrayRef(buffer, 64)); + body(ArrayRef(buffer, 64)); } if (Size >= 64) { - Ptr = body(ArrayRef(Ptr, Size & ~(unsigned long) 0x3f)); + Ptr = body(ArrayRef(Ptr, Size & ~(unsigned long) 0x3f)); Size &= 0x3f; } @@ -232,7 +232,7 @@ void MD5::final(MD5Result &result) { if (free < 8) { memset(&buffer[used], 0, free); - body(ArrayRef(buffer, 64)); + body(ArrayRef(buffer, 64)); used = 0; free = 64; } @@ -249,7 +249,7 @@ void MD5::final(MD5Result &result) { buffer[62] = hi >> 16; buffer[63] = hi >> 24; - body(ArrayRef(buffer, 64)); + body(ArrayRef(buffer, 64)); result[0] = a; result[1] = a >> 8; -- cgit v1.2.3