mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added -ldl to linux builds. Tidied up a few warnings.
This commit is contained in:
parent
5b22611306
commit
9c719306c9
19 changed files with 44 additions and 40 deletions
|
|
@ -49,7 +49,7 @@ public:
|
|||
|
||||
count[1] += (uint32) (dataSize >> 29);
|
||||
|
||||
const size_t spaceLeft = 64 - bufferPos;
|
||||
const size_t spaceLeft = 64 - (size_t) bufferPos;
|
||||
size_t i = 0;
|
||||
|
||||
if (dataSize >= spaceLeft)
|
||||
|
|
@ -132,13 +132,13 @@ public:
|
|||
encode (encodedLength, count, 8);
|
||||
|
||||
// Pad out to 56 mod 64.
|
||||
const int index = (uint32) ((count[0] >> 3) & 0x3f);
|
||||
const int index = (count[0] >> 3) & 0x3f;
|
||||
|
||||
const int paddingLength = (index < 56) ? (56 - index)
|
||||
: (120 - index);
|
||||
|
||||
uint8 paddingBuffer[64] = { 0x80 }; // first byte is 0x80, remaining bytes are zero.
|
||||
processBlock (paddingBuffer, paddingLength);
|
||||
processBlock (paddingBuffer, (size_t) paddingLength);
|
||||
|
||||
processBlock (encodedLength, 8);
|
||||
|
||||
|
|
@ -279,7 +279,7 @@ void MD5::processStream (InputStream& input, int64 numBytesToRead)
|
|||
break;
|
||||
|
||||
numBytesToRead -= bytesRead;
|
||||
generator.processBlock (tempBuffer, bytesRead);
|
||||
generator.processBlock (tempBuffer, (size_t) bytesRead);
|
||||
}
|
||||
|
||||
generator.finish (result);
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ public:
|
|||
length += 64;
|
||||
}
|
||||
|
||||
void processFinalBlock (const void* const data, int numBytes) noexcept
|
||||
void processFinalBlock (const void* const data, unsigned int numBytes) noexcept
|
||||
{
|
||||
jassert (numBytes < 64);
|
||||
|
||||
|
|
@ -126,7 +126,7 @@ public:
|
|||
|
||||
if (bytesRead < sizeof (buffer))
|
||||
{
|
||||
processFinalBlock (buffer, bytesRead);
|
||||
processFinalBlock (buffer, (unsigned int) bytesRead);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue