aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lapi.c b/lapi.c
index 94dfaad2..61d0b316 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.40 2005/05/16 19:21:11 roberto Exp roberto $ 2** $Id: lapi.c,v 2.41 2005/05/17 19:49:15 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -153,7 +153,7 @@ LUA_API lua_State *lua_newthread (lua_State *L) {
153 153
154 154
155LUA_API int lua_gettop (lua_State *L) { 155LUA_API int lua_gettop (lua_State *L) {
156 return (L->top - L->base); 156 return cast(int, L->top - L->base);
157} 157}
158 158
159 159
@@ -972,7 +972,7 @@ LUA_API void lua_concat (lua_State *L, int n) {
972 luaC_checkGC(L); 972 luaC_checkGC(L);
973 api_checknelems(L, n); 973 api_checknelems(L, n);
974 if (n >= 2) { 974 if (n >= 2) {
975 luaV_concat(L, n, L->top - L->base - 1); 975 luaV_concat(L, n, cast(int, L->top - L->base) - 1);
976 L->top -= (n-1); 976 L->top -= (n-1);
977 } 977 }
978 else if (n == 0) { /* push empty string */ 978 else if (n == 0) { /* push empty string */