diff options
Diffstat (limited to 'lfunc.c')
-rw-r--r-- | lfunc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lfunc.c,v 1.40 2001/02/09 20:22:29 roberto Exp roberto $ | 2 | ** $Id: lfunc.c,v 1.41 2001/02/20 18:28:11 roberto Exp roberto $ |
3 | ** Auxiliary functions to manipulate prototypes and closures | 3 | ** Auxiliary functions to manipulate prototypes and closures |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -74,7 +74,7 @@ void luaF_freeclosure (lua_State *L, Closure *c) { | |||
74 | ** Look for n-th local variable at line `line' in function `func'. | 74 | ** Look for n-th local variable at line `line' in function `func'. |
75 | ** Returns NULL if not found. | 75 | ** Returns NULL if not found. |
76 | */ | 76 | */ |
77 | const char *luaF_getlocalname (const Proto *f, int local_number, int pc) { | 77 | const l_char *luaF_getlocalname (const Proto *f, int local_number, int pc) { |
78 | int i; | 78 | int i; |
79 | for (i = 0; i<f->sizelocvars && f->locvars[i].startpc <= pc; i++) { | 79 | for (i = 0; i<f->sizelocvars && f->locvars[i].startpc <= pc; i++) { |
80 | if (pc < f->locvars[i].endpc) { /* is variable active? */ | 80 | if (pc < f->locvars[i].endpc) { /* is variable active? */ |