diff --git a/es-core/src/Platform.cpp b/es-core/src/Platform.cpp index d09ae1ee5..5e26319d3 100644 --- a/es-core/src/Platform.cpp +++ b/es-core/src/Platform.cpp @@ -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; }