mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 15:51:04 +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)
|
if (size > 0)
|
||||||
{
|
{
|
||||||
file.seekg(0, std::ios_base::beg);
|
file.seekg(0, std::ios_base::beg);
|
||||||
buffer.resize(size);
|
buffer.resize(static_cast<std::size_t>(size));
|
||||||
file.read(&buffer[0], size);
|
file.read(&buffer[0], size);
|
||||||
}
|
}
|
||||||
buffer.push_back('\0');
|
buffer.push_back('\0');
|
||||||
|
Loading…
Reference in New Issue
Block a user