From e1d072571ec6f9d830e575a2ecdc95fd43428e53 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 31 Aug 2001 16:46:07 -0300 Subject: better syntax for type casts --- ldblib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldblib.c') diff --git a/ldblib.c b/ldblib.c index d3f0bca3..f91bb551 100644 --- a/ldblib.c +++ b/ldblib.c @@ -1,5 +1,5 @@ /* -** $Id: ldblib.c,v 1.36 2001/03/26 14:31:49 roberto Exp roberto $ +** $Id: ldblib.c,v 1.37 2001/06/06 18:00:19 roberto Exp $ ** Interface from Lua to its debug API ** See Copyright Notice in lua.h */ @@ -37,7 +37,7 @@ static int getinfo (lua_State *L) { const l_char *options = luaL_opt_string(L, 2, l_s("flnSu")); l_char buff[20]; if (lua_isnumber(L, 1)) { - if (!lua_getstack(L, (int)lua_tonumber(L, 1), &ar)) { + if (!lua_getstack(L, (int)(lua_tonumber(L, 1)), &ar)) { lua_pushnil(L); /* level out of range */ return 1; } -- cgit v1.2.3-55-g6feb