diff options
Diffstat (limited to 'apps/plugins/lua/llex.c')
-rw-r--r-- | apps/plugins/lua/llex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/lua/llex.c b/apps/plugins/lua/llex.c index 6f78d48983..723d46c1ce 100644 --- a/apps/plugins/lua/llex.c +++ b/apps/plugins/lua/llex.c | |||
@@ -64,8 +64,8 @@ static void save (LexState *ls, int c) { | |||
64 | void luaX_init (lua_State *L) { | 64 | void luaX_init (lua_State *L) { |
65 | int i; | 65 | int i; |
66 | for (i=0; i<NUM_RESERVED; i++) { | 66 | for (i=0; i<NUM_RESERVED; i++) { |
67 | TString *ts = luaS_new(L, luaX_tokens[i]); | 67 | /* reserved words are never collected */ |
68 | luaS_fix(ts); /* reserved words are never collected */ | 68 | TString *ts = luaS_newlloc(L, luaX_tokens[i], TSTR_INBIN | TSTR_FIXED); |
69 | lua_assert(strlen(luaX_tokens[i])+1 <= TOKEN_LEN); | 69 | lua_assert(strlen(luaX_tokens[i])+1 <= TOKEN_LEN); |
70 | ts->tsv.reserved = cast_byte(i+1); /* reserved word */ | 70 | ts->tsv.reserved = cast_byte(i+1); /* reserved word */ |
71 | } | 71 | } |