Address some compiler warnings about implicit integer conversions.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2016-10-18 22:32:35 -03:00
parent 2e016810c9
commit 0653ec9564
23 changed files with 44 additions and 43 deletions
+2 -2
View File
@@ -61,7 +61,7 @@ ModPlugDecoder::ModPlugDecoder(Data *data, const std::string &ext, int bufferSiz
ModPlug_SetSettings(&settings);
// Load the module.
plug = ModPlug_Load(data->getData(), data->getSize());
plug = ModPlug_Load(data->getData(), (int) data->getSize());
if (plug == 0)
throw love::Exception("Could not load file with ModPlug.");
@@ -121,7 +121,7 @@ bool ModPlugDecoder::rewind()
{
// Let's reload.
ModPlug_Unload(plug);
plug = ModPlug_Load(data->getData(), data->getSize());
plug = ModPlug_Load(data->getData(), (int) data->getSize());
ModPlug_SetMasterVolume(plug, 128);
eof = false;
return (plug != 0);