aboutsummaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lbaselib.c b/lbaselib.c
index b8dc6b50..e3fc8d8b 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.247 2010/08/23 18:03:11 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.248 2010/09/03 14:14:01 roberto Exp roberto $
3** Basic library 3** Basic library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -336,7 +336,7 @@ static int luaB_loadin (lua_State *L) {
336 const char *name; 336 const char *name;
337 lua_pushvalue(L, 1); /* environment for loaded function */ 337 lua_pushvalue(L, 1); /* environment for loaded function */
338 name = lua_setupvalue(L, -2, 1); 338 name = lua_setupvalue(L, -2, 1);
339 if (name == NULL || strcmp(name, "_ENV") != 0) 339 if (name == NULL || strcmp(name, LUA_ENV) != 0)
340 luaL_error(L, "loaded chunk does not have environment upvalue"); 340 luaL_error(L, "loaded chunk does not have environment upvalue");
341 } 341 }
342 return n; 342 return n;