aboutsummaryrefslogtreecommitdiff
path: root/ldblib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-05-24 10:54:49 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-05-24 10:54:49 -0300
commitef62b340e0a6b7b18931000dcbb19c4703bfe0e8 (patch)
treed9d995116a8a686b798d1b625b06ead26f28ba58 /ldblib.c
parent5c2dd7a9e0a5b871a71ba66c4683cd88fe4f5aa4 (diff)
downloadlua-ef62b340e0a6b7b18931000dcbb19c4703bfe0e8.tar.gz
lua-ef62b340e0a6b7b18931000dcbb19c4703bfe0e8.tar.bz2
lua-ef62b340e0a6b7b18931000dcbb19c4703bfe0e8.zip
code cleaner for 16 bits.
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 c3ca748e..2593ba56 100644
--- a/ldblib.c
+++ b/ldblib.c
@@ -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 }