mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
Fix a few minor compiler warnings
This commit is contained in:
@@ -69,7 +69,7 @@ bool Stream::write(Data *src)
|
||||
|
||||
bool Stream::write(Data *src, int64 offset, int64 size)
|
||||
{
|
||||
if (offset < 0 || size < 0 || offset + size > src->getSize())
|
||||
if (offset < 0 || size < 0 || offset + size > (int64) src->getSize())
|
||||
throw love::Exception("Offset and size parameters do not fit within the given Data's size.");
|
||||
|
||||
return write((const uint8 *) src->getData() + offset, size);
|
||||
|
||||
Reference in New Issue
Block a user