diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-09 18:22:29 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-09 18:22:29 -0200 |
commit | d2e340f467a46017fa3526074c1756124e569880 (patch) | |
tree | e5b08773a0f0734193b0c1c435fab8ee243f08dc /lfunc.c | |
parent | 6875fdc8be9029b1bb29379c59d5409a0df42c10 (diff) | |
download | lua-d2e340f467a46017fa3526074c1756124e569880.tar.gz lua-d2e340f467a46017fa3526074c1756124e569880.tar.bz2 lua-d2e340f467a46017fa3526074c1756124e569880.zip |
string pointers are always fully aligned
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 */ |