mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Hopefully fix some more warnings in filesystem
This commit is contained in:
@@ -29,7 +29,7 @@ namespace love
|
||||
namespace filesystem
|
||||
{
|
||||
FileData::FileData(uint64 size, const std::string & filename)
|
||||
: data(new char[size]), size(size), filename(filename)
|
||||
: data(new char[(size_t) size]), size(size), filename(filename)
|
||||
{
|
||||
if (filename.rfind('.') != std::string::npos)
|
||||
extension = filename.substr(filename.rfind('.')+1);
|
||||
|
||||
Reference in New Issue
Block a user