From 3ad6bc030342db5d2b0fb5d59cf95a1c52a608ca Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 24 Sep 2004 03:48:27 +0000 Subject: [PATCH] fix warning --- stepmania/src/LuaHelpers.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stepmania/src/LuaHelpers.cpp b/stepmania/src/LuaHelpers.cpp index eaeb9949de..35a8150be8 100644 --- a/stepmania/src/LuaHelpers.cpp +++ b/stepmania/src/LuaHelpers.cpp @@ -230,11 +230,13 @@ float Lua::RunExpressionF( const CString &str ) RunExpression( str ); - float result = lua_tonumber( L, -1 ); + float result = (float) lua_tonumber( L, -1 ); lua_pop( L, -1 ); return result; } catch( const CString &err ) { + /* Why does VC7 say "unreachable code" here? This isn't unreachable, and + * it doesn't warn in RunExpressionB ... */ RageException::Throw( "Error running \"%s\": %s", str.c_str(), err.c_str() ); } }