Fix warnings about shortening 64 bits to 32 bits.

This commit is contained in:
Steve Checkoway
2008-05-10 06:50:57 +00:00
parent f25a63eb8f
commit da1b2d5052
4 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -26,13 +26,13 @@ void RageColor::FromStack( lua_State *L, int iPos )
int iFrom = lua_gettop( L );
lua_rawgeti( L, iFrom, 1 );
r = lua_tonumber( L, -1 );
r = (float)lua_tonumber( L, -1 );
lua_rawgeti( L, iFrom, 2 );
g = lua_tonumber( L, -1 );
g = (float)lua_tonumber( L, -1 );
lua_rawgeti( L, iFrom, 3 );
b = lua_tonumber( L, -1 );
b = (float)lua_tonumber( L, -1 );
lua_rawgeti( L, iFrom, 4 );
a = lua_tonumber( L, -1 );
a = (float)lua_tonumber( L, -1 );
lua_pop( L, 5 );
}