diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-31 11:25:18 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-31 11:25:18 -0300 |
commit | 90de38bf1f85714526c30e42b670ca997ec45827 (patch) | |
tree | c9dbf61d741ddd2ededcba4c1a4da99211c28f7a /lapi.c | |
parent | e8a7ecb982effdfc1148098b288c6ac7130f756e (diff) | |
download | lua-90de38bf1f85714526c30e42b670ca997ec45827.tar.gz lua-90de38bf1f85714526c30e42b670ca997ec45827.tar.bz2 lua-90de38bf1f85714526c30e42b670ca997ec45827.zip |
warnings in VS .Net
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 | ||
155 | LUA_API int lua_gettop (lua_State *L) { | 155 | LUA_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 */ |