aboutsummaryrefslogtreecommitdiff
path: root/lstring.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstring.c')
-rw-r--r--lstring.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lstring.c b/lstring.c
index cb8d1e2a..8e7516af 100644
--- a/lstring.c
+++ b/lstring.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstring.c,v 2.42 2014/07/18 13:36:14 roberto Exp roberto $ 2** $Id: lstring.c,v 2.43 2014/07/18 14:46:47 roberto Exp roberto $
3** String table (keeps all strings handled by Lua) 3** String table (keeps all strings handled by Lua)
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -126,8 +126,8 @@ static TString *internshrstr (lua_State *L, const char *str, size_t l) {
126 if (l == ts->len && 126 if (l == ts->len &&
127 (memcmp(str, getstr(ts), l * sizeof(char)) == 0)) { 127 (memcmp(str, getstr(ts), l * sizeof(char)) == 0)) {
128 /* found! */ 128 /* found! */
129 if (isdead(g, obj2gco(ts))) /* dead (but not collected yet)? */ 129 if (isdead(g, ts)) /* dead (but not collected yet)? */
130 changewhite(obj2gco(ts)); /* resurrect it */ 130 changewhite(ts); /* resurrect it */
131 return ts; 131 return ts;
132 } 132 }
133 } 133 }