From 90f4c290487957a2ab704fc8e511c73f4e0891d1 Mon Sep 17 00:00:00 2001
From: Leon Styhre <leon@leonstyhre.com>
Date: Mon, 18 Jan 2021 00:19:27 +0100
Subject: [PATCH] Changed a cast from C style to C++ style.

---
 es-core/src/Platform.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
     }