summaryrefslogtreecommitdiff
path: root/ldblib.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldblib.c')
-rw-r--r--ldblib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldblib.c b/ldblib.c
index d3f0bca3..f91bb551 100644
--- a/ldblib.c
+++ b/ldblib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldblib.c,v 1.36 2001/03/26 14:31:49 roberto Exp roberto $ 2** $Id: ldblib.c,v 1.37 2001/06/06 18:00:19 roberto Exp $
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*/
@@ -37,7 +37,7 @@ static int getinfo (lua_State *L) {
37 const l_char *options = luaL_opt_string(L, 2, l_s("flnSu")); 37 const l_char *options = luaL_opt_string(L, 2, l_s("flnSu"));
38 l_char buff[20]; 38 l_char buff[20];
39 if (lua_isnumber(L, 1)) { 39 if (lua_isnumber(L, 1)) {
40 if (!lua_getstack(L, (int)lua_tonumber(L, 1), &ar)) { 40 if (!lua_getstack(L, (int)(lua_tonumber(L, 1)), &ar)) {
41 lua_pushnil(L); /* level out of range */ 41 lua_pushnil(L); /* level out of range */
42 return 1; 42 return 1;
43 } 43 }