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.38 2001/01/29 19:34:02 roberto Exp roberto $ | 2 | ** $Id: lfunc.c,v 1.39 2001/02/01 17:40:48 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 | */ |
| @@ -79,7 +79,7 @@ const char *luaF_getlocalname (const Proto *f, int local_number, int pc) { | |||
| 79 | if (pc < f->locvars[i].endpc) { /* is variable active? */ | 79 | if (pc < f->locvars[i].endpc) { /* is variable active? */ |
| 80 | local_number--; | 80 | local_number--; |
| 81 | if (local_number == 0) | 81 | if (local_number == 0) |
| 82 | return f->locvars[i].varname->str; | 82 | return getstr(f->locvars[i].varname); |
| 83 | } | 83 | } |
| 84 | } | 84 | } |
| 85 | return NULL; /* not found */ | 85 | return NULL; /* not found */ |
