diff --git a/source/obs/gs/gs-effect.cpp b/source/obs/gs/gs-effect.cpp index 6120a7b0..1bc7408b 100644 --- a/source/obs/gs/gs-effect.cpp +++ b/source/obs/gs/gs-effect.cpp @@ -49,7 +49,7 @@ static std::string load_file_as_code(std::filesystem::path file) } std::vector buf(size_t(size + 1), 0); - ifs.read(buf.data(), size); + ifs.read(buf.data(), static_cast(size)); return std::string(buf.data(), buf.data() + size); }