From aa598063226d784977ce765991410c32765521ca Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sat, 21 Dec 2019 18:05:54 +0100 Subject: [PATCH] gs-effect: Fix warning --- source/obs/gs/gs-effect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }