diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-06-07 12:01:21 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-06-07 12:01:21 -0300 |
| commit | ba11831d357889ee090ce92ff508957c6c023c42 (patch) | |
| tree | d54958d74c7fc1d5b751bf4819ed7345e3b6e69b /lcode.c | |
| parent | 190ddd431dd9f14148d232ed9a72db482a1df934 (diff) | |
| download | lua-ba11831d357889ee090ce92ff508957c6c023c42.tar.gz lua-ba11831d357889ee090ce92ff508957c6c023c42.tar.bz2 lua-ba11831d357889ee090ce92ff508957c6c023c42.zip | |
smaller structs for udata and for strings
Diffstat (limited to 'lcode.c')
| -rw-r--r-- | lcode.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lcode.c,v 1.69 2001/06/05 18:17:01 roberto Exp roberto $ | 2 | ** $Id: lcode.c,v 1.70 2001/06/06 18:00:19 roberto Exp roberto $ |
| 3 | ** Code generator for Lua | 3 | ** Code generator for Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -231,7 +231,7 @@ int luaK_stringk (FuncState *fs, TString *s) { | |||
| 231 | TObject o; | 231 | TObject o; |
| 232 | setsvalue(&o, s); | 232 | setsvalue(&o, s); |
| 233 | c = addk(fs, &o); | 233 | c = addk(fs, &o); |
| 234 | s->constindex = c; /* hint for next time */ | 234 | s->constindex = (unsigned short)c; /* hint for next time */ |
| 235 | } | 235 | } |
| 236 | return c; | 236 | return c; |
| 237 | } | 237 | } |
