From ff9e753979c7f8084b3a1a300776283cd82a04e3 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 23 Jun 2005 08:53:04 +0000 Subject: [PATCH] cleanup --- stepmania/src/LuaBinding.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/LuaBinding.h b/stepmania/src/LuaBinding.h index 773b1bd0ed..b12b711f96 100644 --- a/stepmania/src/LuaBinding.h +++ b/stepmania/src/LuaBinding.h @@ -135,15 +135,15 @@ private: T *obj = check( L, 1, true ); // get self lua_remove(L, 1); // remove self so member function args start at index 1 // get member function from upvalue - RegType *l = static_cast(lua_touserdata(L, lua_upvalueindex(1))); + RegType *l = (RegType *) lua_touserdata( L, lua_upvalueindex(1) ); return (*(l->mfunc))(obj,L); // call member function } /* Two objects are equal if the underlying object is the same. */ static int equal( lua_State *L ) { - userdataType *obj1 = static_cast( lua_touserdata(L, 1) ); - userdataType *obj2 = static_cast( lua_touserdata(L, 2) ); + userdataType *obj1 = (userdataType *) lua_touserdata( L, 1 ); + userdataType *obj2 = (userdataType *) lua_touserdata( L, 2 ); lua_pushboolean( L, obj1->pT == obj2->pT ); return 1; }