1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed minor warnings in some OSC code

This commit is contained in:
jules 2015-12-10 10:32:53 +00:00
parent a14f6abbe0
commit 40a6372a58

View file

@ -114,14 +114,14 @@ namespace
if (input.getNumBytesRemaining() < 4)
throw OSCFormatError ("OSC input stream exhausted while reading blob");
const size_t blobDataSize = input.readIntBigEndian();
const size_t blobDataSize = (size_t) input.readIntBigEndian();
if (input.getNumBytesRemaining() < (blobDataSize + 3) % 4)
if ((size_t) input.getNumBytesRemaining() < (blobDataSize + 3) % 4)
throw OSCFormatError ("OSC input stream exhausted before reaching end of blob");
MemoryBlock blob;
const size_t bytesRead = input.readIntoMemoryBlock (blob, blobDataSize);
const size_t bytesRead = input.readIntoMemoryBlock (blob, (ssize_t) blobDataSize);
readPaddingZeros (bytesRead);
return blob;