diff options
author | Mike Pall <mike> | 2011-03-10 02:13:43 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2011-03-10 02:13:43 +0100 |
commit | 889368e921a11e2abb3769e2c1f395174e83112d (patch) | |
tree | a0280bec2142380ce13b1afc2d8e17fcd65e29e9 /src/lj_api.c | |
parent | bfce3c1127fd57fe0c935c92bcf45b4737041edd (diff) | |
download | luajit-889368e921a11e2abb3769e2c1f395174e83112d.tar.gz luajit-889368e921a11e2abb3769e2c1f395174e83112d.tar.bz2 luajit-889368e921a11e2abb3769e2c1f395174e83112d.zip |
Get rid of the remaining silly cast macros from Lua.
Diffstat (limited to 'src/lj_api.c')
-rw-r--r-- | src/lj_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_api.c b/src/lj_api.c index 10f9f3cb..70834f8d 100644 --- a/src/lj_api.c +++ b/src/lj_api.c | |||
@@ -500,7 +500,7 @@ LUA_API size_t lua_objlen(lua_State *L, int idx) | |||
500 | if (tvisstr(o)) | 500 | if (tvisstr(o)) |
501 | return strV(o)->len; | 501 | return strV(o)->len; |
502 | else if (tvistab(o)) | 502 | else if (tvistab(o)) |
503 | return cast(size_t, lj_tab_len(tabV(o))); | 503 | return (size_t)lj_tab_len(tabV(o)); |
504 | else if (tvisudata(o)) | 504 | else if (tvisudata(o)) |
505 | return udataV(o)->len; | 505 | return udataV(o)->len; |
506 | else if (tvisnumber(o)) | 506 | else if (tvisnumber(o)) |
@@ -1129,7 +1129,7 @@ LUA_API int lua_resume(lua_State *L, int nargs) | |||
1129 | 1129 | ||
1130 | static TValue *cpparser(lua_State *L, lua_CFunction dummy, void *ud) | 1130 | static TValue *cpparser(lua_State *L, lua_CFunction dummy, void *ud) |
1131 | { | 1131 | { |
1132 | LexState *ls = cast(LexState *, ud); | 1132 | LexState *ls = (LexState *)ud; |
1133 | GCfunc *fn; | 1133 | GCfunc *fn; |
1134 | UNUSED(dummy); | 1134 | UNUSED(dummy); |
1135 | cframe_errfunc(L->cframe) = -1; /* Inherit error function. */ | 1135 | cframe_errfunc(L->cframe) = -1; /* Inherit error function. */ |