mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-18 06:10:10 +00:00
Lua: change a static_cast to a reinterpret_cast, fun times
:^)
This commit is contained in:
@@ -30,7 +30,7 @@ TLuaPlugin::TLuaPlugin(TLuaEngine& Engine, const TLuaPluginConfig& Config, const
|
|||||||
std::vector<std::pair<fs::path, std::shared_ptr<TLuaResult>>> ResultsToCheck;
|
std::vector<std::pair<fs::path, std::shared_ptr<TLuaResult>>> ResultsToCheck;
|
||||||
for (const auto& Entry : Entries) {
|
for (const auto& Entry : Entries) {
|
||||||
// read in entire file
|
// 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) {
|
if (File) {
|
||||||
auto Size = std::filesystem::file_size(Entry);
|
auto Size = std::filesystem::file_size(Entry);
|
||||||
auto Contents = std::make_shared<std::string>();
|
auto Contents = std::make_shared<std::string>();
|
||||||
|
|||||||
Reference in New Issue
Block a user