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:
parent
e61e8f6775
commit
55306275b1
8 changed files with 22 additions and 19 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue