diff --git a/src/SFML/Graphics/Shader.cpp b/src/SFML/Graphics/Shader.cpp index c9654359..a71e586b 100644 --- a/src/SFML/Graphics/Shader.cpp +++ b/src/SFML/Graphics/Shader.cpp @@ -56,7 +56,7 @@ namespace if (size > 0) { file.seekg(0, std::ios_base::beg); - buffer.resize(size); + buffer.resize(static_cast(size)); file.read(&buffer[0], size); } buffer.push_back('\0');