Possible compiler fix

This commit is contained in:
Lion Kortlepel
2021-09-17 00:54:41 +02:00
parent a44050f0f1
commit c73d56c143
2 changed files with 2 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ TLuaPlugin::TLuaPlugin(TLuaEngine& Engine, const TLuaPluginConfig& Config, const
std::vector<std::pair<fs::path, std::shared_ptr<TLuaResult>>> ResultsToCheck;
for (const auto& Entry : Entries) {
// read in entire file
std::FILE* File = std::fopen(Entry.c_str(), "r");
std::FILE* File = std::fopen(static_cast<const char*>(Entry.c_str()), "r");
if (File) {
auto Size = std::filesystem::file_size(Entry);
auto Contents = std::make_shared<std::string>();