Lua: change a static_cast to a reinterpret_cast, fun times

:^)
This commit is contained in:
Lion Kortlepel 2021-09-17 01:27:45 +02:00
parent b0c467f971
commit e75e65815c
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

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(static_cast<const char*>(Entry.c_str()), "r");
std::FILE* File = std::fopen(reinterpret_cast<const char*>(Entry.c_str()), "r");
if (File) {
auto Size = std::filesystem::file_size(Entry);
auto Contents = std::make_shared<std::string>();