aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-10-17 19:17:45 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-10-17 19:17:45 -0200
commit8069f77ca4b33177c881e35cb329415eb44b7147 (patch)
tree7f6586b19a05f4d98469e2b9698e4cee5d1e4ce4 /lapi.c
parent1e81da51bab87148981486a84b846399050f4ef2 (diff)
downloadlua-8069f77ca4b33177c881e35cb329415eb44b7147.tar.gz
lua-8069f77ca4b33177c881e35cb329415eb44b7147.tar.bz2
lua-8069f77ca4b33177c881e35cb329415eb44b7147.zip
C++ warning
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lapi.c b/lapi.c
index a25707d5..ea50ea28 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 1.154 2001/10/11 21:40:56 roberto Exp $ 2** $Id: lapi.c,v 1.155 2001/10/17 21:12:57 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -466,7 +466,7 @@ LUA_API int lua_ref (lua_State *L, int lock) {
466 return LUA_REFNIL; 466 return LUA_REFNIL;
467 } 467 }
468 lua_rawgeti(L, LUA_REGISTRYINDEX, 0); /* get first free element */ 468 lua_rawgeti(L, LUA_REGISTRYINDEX, 0); /* get first free element */
469 ref = lua_tonumber(L, -1); 469 ref = cast(int, lua_tonumber(L, -1));
470 lua_pop(L, 1); /* remove it from stack */ 470 lua_pop(L, 1); /* remove it from stack */
471 if (ref != 0) { /* some free element? */ 471 if (ref != 0) { /* some free element? */
472 lua_rawgeti(L, LUA_REGISTRYINDEX, ref); /* remove it from list */ 472 lua_rawgeti(L, LUA_REGISTRYINDEX, ref); /* remove it from list */