Fixed minor typecast warning in Shader.cpp

This commit is contained in:
Laurent Gomila 2013-01-16 22:52:21 +01:00
parent 91e1743516
commit 9fac5d74dc

View File

@ -56,7 +56,7 @@ namespace
if (size > 0)
{
file.seekg(0, std::ios_base::beg);
buffer.resize(size);
buffer.resize(static_cast<std::size_t>(size));
file.read(&buffer[0], size);
}
buffer.push_back('\0');