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:
parent
a14f6abbe0
commit
40a6372a58
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue