diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-20 12:53:42 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-20 12:53:42 -0300 |
| commit | f21e9c172f9f15d8d7501e35635e78dc11f5ff58 (patch) | |
| tree | cb50795d8bceff944dd8f7d75626069491d5e8d0 /lstrlib.c | |
| parent | 67578ec51f1a3ec2c967f15d370067caf9e0b87b (diff) | |
| download | lua-f21e9c172f9f15d8d7501e35635e78dc11f5ff58.tar.gz lua-f21e9c172f9f15d8d7501e35635e78dc11f5ff58.tar.bz2 lua-f21e9c172f9f15d8d7501e35635e78dc11f5ff58.zip | |
details
Diffstat (limited to '')
| -rw-r--r-- | lstrlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstrlib.c,v 1.114 2005/05/16 21:19:00 roberto Exp roberto $ | 2 | ** $Id: lstrlib.c,v 1.115 2005/05/17 19:49:15 roberto Exp roberto $ |
| 3 | ** Standard library for string operations and pattern-matching | 3 | ** Standard library for string operations and pattern-matching |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -780,7 +780,7 @@ static void createmetatable (lua_State *L) { | |||
| 780 | lua_pushvalue(L, -2); /* string library... */ | 780 | lua_pushvalue(L, -2); /* string library... */ |
| 781 | lua_setfield(L, -2, "__index"); /* ...is the __index metamethod */ | 781 | lua_setfield(L, -2, "__index"); /* ...is the __index metamethod */ |
| 782 | lua_getfield(L, -2, "len"); | 782 | lua_getfield(L, -2, "len"); |
| 783 | lua_setfield(L, -2, "__siz"); | 783 | lua_setfield(L, -2, "__len"); |
| 784 | lua_pop(L, 1); /* pop metatable */ | 784 | lua_pop(L, 1); /* pop metatable */ |
| 785 | } | 785 | } |
| 786 | 786 | ||
