gs-effect: Fix warning

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2019-12-21 18:05:54 +01:00
parent e5fb68d2c1
commit aa59806322
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ static std::string load_file_as_code(std::filesystem::path file)
} }
std::vector<char> buf(size_t(size + 1), 0); std::vector<char> buf(size_t(size + 1), 0);
ifs.read(buf.data(), size); ifs.read(buf.data(), static_cast<std::streamsize>(size));
return std::string(buf.data(), buf.data() + size); return std::string(buf.data(), buf.data() + size);
} }