Browse Source

Fixed minor warnings in some OSC code

tags/2021-05-28
jules 10 years ago
parent
commit
40a6372a58
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      modules/juce_osc/osc/juce_OSCReceiver.cpp

+ 3
- 3
modules/juce_osc/osc/juce_OSCReceiver.cpp 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;


Loading…
Cancel
Save