diff --git a/src/SFML/Graphics/Shader.cpp b/src/SFML/Graphics/Shader.cpp index c9654359e..a71e586b0 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');