From 0f2cdac73660593fd453c313ad3ffb2b25b7dcd5 Mon Sep 17 00:00:00 2001 From: Brad Hughes Date: Wed, 20 Apr 2016 10:20:31 -0400 Subject: Fix VS compile. Apparently VS doesn't like reintepret_cast(0) - weird. --- src/emu/luaengine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/emu/luaengine.cpp') diff --git a/src/emu/luaengine.cpp b/src/emu/luaengine.cpp index 012a41f723d..f452684f997 100644 --- a/src/emu/luaengine.cpp +++ b/src/emu/luaengine.cpp @@ -1772,7 +1772,7 @@ Tout lua_engine::run(const char *env, int ref, Tin in) luabridge::Stack::push(m_lua_state, in); run_internal(env, ref); if(lua_isnil(m_lua_state, 1)) - ret = reinterpret_cast(0); + ret = Tout(0); else ret = luabridge::Stack::get(m_lua_state, 1); lua_pop(m_lua_state, 1); @@ -1787,7 +1787,7 @@ Tout lua_engine::run(const char *env, int ref) lua_pushnil(m_lua_state); run_internal(env, ref); if(lua_isnil(m_lua_state, 1)) - ret = reinterpret_cast(0); + ret = Tout(0); else ret = luabridge::Stack::get(m_lua_state, 1); lua_pop(m_lua_state, 1); -- cgit v1.2.3-70-g09d2