diff options
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. */ |