Fix a few minor compiler warnings

This commit is contained in:
Alex Szpakowski
2022-06-18 17:59:55 -03:00
parent 2149457c72
commit 69c4a496dd
4 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -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);