From 8069f77ca4b33177c881e35cb329415eb44b7147 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 17 Oct 2001 19:17:45 -0200 Subject: [PATCH] C++ warning --- lapi.c | 4 ++-- 1 file 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 @@ /* -** $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 ** See Copyright Notice in lua.h */ @@ -466,7 +466,7 @@ LUA_API int lua_ref (lua_State *L, int lock) { return LUA_REFNIL; } 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 */ if (ref != 0) { /* some free element? */ lua_rawgeti(L, LUA_REGISTRYINDEX, ref); /* remove it from list */