diff options
Diffstat (limited to 'lbaselib.c')
-rw-r--r-- | lbaselib.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbaselib.c,v 1.129 2003/03/19 21:14:34 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.130 2003/04/03 13:35:34 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 | */ |
@@ -656,8 +656,8 @@ static void base_open (lua_State *L) { | |||
656 | lua_pushvalue(L, -1); /* `w' will be its own metatable */ | 656 | lua_pushvalue(L, -1); /* `w' will be its own metatable */ |
657 | lua_setmetatable(L, -2); | 657 | lua_setmetatable(L, -2); |
658 | lua_pushliteral(L, "__mode"); | 658 | lua_pushliteral(L, "__mode"); |
659 | lua_pushliteral(L, "k"); | 659 | lua_pushliteral(L, "kv"); |
660 | lua_rawset(L, -3); /* metatable(w).__mode = "k" */ | 660 | lua_rawset(L, -3); /* metatable(w).__mode = "kv" */ |
661 | lua_pushcclosure(L, luaB_newproxy, 1); | 661 | lua_pushcclosure(L, luaB_newproxy, 1); |
662 | lua_rawset(L, -3); /* set global `newproxy' */ | 662 | lua_rawset(L, -3); /* set global `newproxy' */ |
663 | lua_rawset(L, -1); /* set global _G */ | 663 | lua_rawset(L, -1); /* set global _G */ |