1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-02 03:20:06 +00:00

Minor fixes to avoid compiler warnings

This commit is contained in:
Julian Storer 2010-01-15 15:06:24 +00:00
parent e61e8f6775
commit 55306275b1
8 changed files with 22 additions and 19 deletions

View file

@ -57,7 +57,8 @@ int64 MemoryInputStream::getTotalLength()
int MemoryInputStream::read (void* buffer, int howMany)
{
const size_t num = jmin ((size_t) howMany, dataSize - position);
jassert (howMany >= 0);
const int num = jmin (howMany, (int) (dataSize - position));
memcpy (buffer, data + position, num);
position += num;
return (int) num;