mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-11 06:15:05 +00:00
gs-effect: Fix warning
This commit is contained in:
parent
e5fb68d2c1
commit
aa59806322
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ static std::string load_file_as_code(std::filesystem::path file)
|
|||
}
|
||||
|
||||
std::vector<char> buf(size_t(size + 1), 0);
|
||||
ifs.read(buf.data(), size);
|
||||
ifs.read(buf.data(), static_cast<std::streamsize>(size));
|
||||
|
||||
return std::string(buf.data(), buf.data() + size);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue