lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 61fa462535a5c16b46e5b19ee28c0d998ab6c39e
parent fba9050d3d6aa53853f89317c8f040f90a4c61db
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Fri,  1 Aug 2014 14:22:32 -0300

added cast to avoid warning

Diffstat:
Mlbaselib.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lbaselib.c b/lbaselib.c @@ -1,5 +1,5 @@ /* -** $Id: lbaselib.c,v 1.292 2014/07/17 13:53:37 roberto Exp roberto $ +** $Id: lbaselib.c,v 1.293 2014/07/24 19:33:29 roberto Exp roberto $ ** Basic library ** See Copyright Notice in lua.h */ @@ -438,7 +438,7 @@ static int finishpcall (lua_State *L, int status, lua_Ctx extra) { return 2; /* return false, msg */ } else - return lua_gettop(L) - extra; /* return all results */ + return lua_gettop(L) - (int)extra; /* return all results */ }