diff --git a/source/platform/renderers/Irrlicht/Irrlicht.cpp b/source/platform/renderers/Irrlicht/Irrlicht.cpp index 20dad4f5..ad28b48d 100644 --- a/source/platform/renderers/Irrlicht/Irrlicht.cpp +++ b/source/platform/renderers/Irrlicht/Irrlicht.cpp @@ -241,7 +241,7 @@ namespace Gwk { texData.m_ReadData = deleted_unique_ptr( new unsigned char[texData.width * texData.height * bytes], [](unsigned char* mem) { if (mem) delete[](mem); }); - memcpy(texData.m_ReadData.get(), buffer, texData.width * texData.height * bytes); + memcpy(texData.m_ReadData.get(), buffer, static_cast(texData.width) * static_cast(texData.height) * static_cast(bytes)); texData.readable = true; const irr::video::SColor pixelColor = irr::video::SColor(*(unsigned int*)(buffer + (y * pitch) + (x*bytes))); Texture->unlock();