mirror of https://github.com/rusefi/lua.git
C++ warning
This commit is contained in:
parent
1e81da51ba
commit
8069f77ca4
4
lapi.c
4
lapi.c
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** $Id: lapi.c,v 1.154 2001/10/11 21:40:56 roberto Exp $
|
** $Id: lapi.c,v 1.155 2001/10/17 21:12:57 roberto Exp roberto $
|
||||||
** Lua API
|
** Lua API
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -466,7 +466,7 @@ LUA_API int lua_ref (lua_State *L, int lock) {
|
||||||
return LUA_REFNIL;
|
return LUA_REFNIL;
|
||||||
}
|
}
|
||||||
lua_rawgeti(L, LUA_REGISTRYINDEX, 0); /* get first free element */
|
lua_rawgeti(L, LUA_REGISTRYINDEX, 0); /* get first free element */
|
||||||
ref = lua_tonumber(L, -1);
|
ref = cast(int, lua_tonumber(L, -1));
|
||||||
lua_pop(L, 1); /* remove it from stack */
|
lua_pop(L, 1); /* remove it from stack */
|
||||||
if (ref != 0) { /* some free element? */
|
if (ref != 0) { /* some free element? */
|
||||||
lua_rawgeti(L, LUA_REGISTRYINDEX, ref); /* remove it from list */
|
lua_rawgeti(L, LUA_REGISTRYINDEX, ref); /* remove it from list */
|
||||||
|
|
Loading…
Reference in New Issue