diff options
Diffstat (limited to 'ldblib.c')
-rw-r--r-- | ldblib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldblib.c,v 1.14 2000/05/08 13:21:35 roberto Exp roberto $ | 2 | ** $Id: ldblib.c,v 1.15 2000/05/12 19:49:18 roberto Exp roberto $ |
3 | ** Interface from Lua to its debug API | 3 | ** Interface from Lua to its debug API |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -49,7 +49,7 @@ static void getinfo (lua_State *L) { | |||
49 | const char *options = luaL_opt_string(L, 2, "flnSu"); | 49 | const char *options = luaL_opt_string(L, 2, "flnSu"); |
50 | char buff[20]; | 50 | char buff[20]; |
51 | if (lua_isnumber(L, func)) { | 51 | if (lua_isnumber(L, func)) { |
52 | if (!lua_getstack(L, lua_getnumber(L, func), &ar)) { | 52 | if (!lua_getstack(L, (int)lua_getnumber(L, func), &ar)) { |
53 | lua_pushnil(L); /* level out of range */ | 53 | lua_pushnil(L); /* level out of range */ |
54 | return; | 54 | return; |
55 | } | 55 | } |