aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
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 b19ac922..aacfd93c 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.134 2010/08/04 18:40:28 roberto Exp roberto $ 2** $Id: lapi.c,v 2.135 2010/09/03 14:14:01 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*/
@@ -891,7 +891,7 @@ LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data,
891 /* get global table from registry */ 891 /* get global table from registry */
892 Table *reg = hvalue(&G(L)->l_registry); 892 Table *reg = hvalue(&G(L)->l_registry);
893 const TValue *gt = luaH_getint(reg, LUA_RIDX_GLOBALS); 893 const TValue *gt = luaH_getint(reg, LUA_RIDX_GLOBALS);
894 /* set global table as 1st upvalue of 'f' (may be _ENV) */ 894 /* set global table as 1st upvalue of 'f' (may be LUA_ENV) */
895 setobj(L, f->l.upvals[0]->v, gt); 895 setobj(L, f->l.upvals[0]->v, gt);
896 luaC_barrier(L, f->l.upvals[0], gt); 896 luaC_barrier(L, f->l.upvals[0], gt);
897 } 897 }