mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Fixed some compiler warnings
This commit is contained in:
@@ -97,7 +97,7 @@ DevilHandler::DecodedImage DevilHandler::decode(love::filesystem::FileData *data
|
||||
|
||||
try
|
||||
{
|
||||
bool success = ilLoadL(IL_TYPE_UNKNOWN, (void *)data->getData(), data->getSize()) == IL_TRUE;
|
||||
bool success = ilLoadL(IL_TYPE_UNKNOWN, (void *)data->getData(), (ILuint) data->getSize()) == IL_TRUE;
|
||||
|
||||
if (!success)
|
||||
throw love::Exception("Could not decode image!");
|
||||
@@ -113,7 +113,7 @@ DevilHandler::DecodedImage DevilHandler::decode(love::filesystem::FileData *data
|
||||
if (bpp != sizeof(pixel))
|
||||
throw love::Exception("Could not convert image!");
|
||||
|
||||
img.size = ilGetInteger(IL_IMAGE_SIZE_OF_DATA);
|
||||
img.size = (size_t) ilGetInteger(IL_IMAGE_SIZE_OF_DATA);
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user