Get rid of the remaining silly cast macros from Lua.

This commit is contained in:
Mike Pall
2011-03-10 02:13:43 +01:00
parent bfce3c1127
commit 889368e921
17 changed files with 58 additions and 65 deletions

View File

@@ -500,7 +500,7 @@ LUA_API size_t lua_objlen(lua_State *L, int idx)
if (tvisstr(o))
return strV(o)->len;
else if (tvistab(o))
return cast(size_t, lj_tab_len(tabV(o)));
return (size_t)lj_tab_len(tabV(o));
else if (tvisudata(o))
return udataV(o)->len;
else if (tvisnumber(o))
@@ -1129,7 +1129,7 @@ LUA_API int lua_resume(lua_State *L, int nargs)
static TValue *cpparser(lua_State *L, lua_CFunction dummy, void *ud)
{
LexState *ls = cast(LexState *, ud);
LexState *ls = (LexState *)ud;
GCfunc *fn;
UNUSED(dummy);
cframe_errfunc(L->cframe) = -1; /* Inherit error function. */