diff options
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 | } |
