Changed a cast from C style to C++ style.

This commit is contained in:
Leon Styhre 2021-01-18 00:19:27 +01:00
parent 8d2929a990
commit 90f4c29048

View file

@ -81,7 +81,7 @@ int launchEmulatorUnix(const std::string& cmd_utf8)
std::string commandOutput;
int returnValue;
if (!(commandPipe = (FILE*)popen(command.c_str(), "r"))) {
if (!(commandPipe = reinterpret_cast<FILE*>(popen(command.c_str(), "r")))) {
LOG(LogError) << "Couldn't open pipe to command.";
return -1;
}