Fixed some compiler warnings

This commit is contained in:
Alex Szpakowski
2013-12-07 05:07:54 -04:00
parent eadb718ade
commit 2ee869b0e8
9 changed files with 19 additions and 19 deletions
+2 -2
View File
@@ -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
{