mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Fixed minor typecast warning in Shader.cpp
This commit is contained in:
parent
91e1743516
commit
9fac5d74dc
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user