summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2016-05-30 12:53:28 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2016-05-30 12:53:28 -0300
commitaa66ca76ce10db054e34de8a19a48d0beb5eb7a6 (patch)
tree0e92a2b77d8c480895f9fd6546578f4b5ffb4a32
parent707b0ba6e2dbfd58cf1167dae0e17975904b18aa (diff)
downloadlua-github-aa66ca76ce10db054e34de8a19a48d0beb5eb7a6.tar.gz
'lua_pushglobaltable' returns 'void'v5.3.3v5-3-3
-rw-r--r--lua.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua.h b/lua.h
index 4d0e5430..253caed0 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
/*
-** $Id: lua.h,v 1.329 2015/11/13 17:18:42 roberto Exp roberto $
+** $Id: lua.h,v 1.330 2016/01/13 17:55:19 roberto Exp roberto $
** Lua - A Scripting Language
** Lua.org, PUC-Rio, Brazil (http://www.lua.org)
** See Copyright Notice at the end of this file
@@ -361,7 +361,7 @@ LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud);
#define lua_pushliteral(L, s) lua_pushstring(L, "" s)
#define lua_pushglobaltable(L) \
- lua_rawgeti(L, LUA_REGISTRYINDEX, LUA_RIDX_GLOBALS)
+ ((void)lua_rawgeti(L, LUA_REGISTRYINDEX, LUA_RIDX_GLOBALS))
#define lua_tostring(L,i) lua_tolstring(L, (i), NULL)