This commit is contained in:
1 parent
2592aeb85e
commit
d481042480
2 files changed
+6
No files matched your search
@@ -131,6 +131,8 @@ TString *luaX_newstring(LexState *ls, const char *str, size_t l) {
|
||||
table has no metatable, so it does not need to invalidate cache */
|
||||
setbvalue(o, 1); /* t[string] = true */
|
||||
luaC_checkGC(L);
|
||||
} else { /* string already present */
|
||||
ts = rawtsvalue(keyfromval(o)); /* re-use value previously stored */
|
||||
}
|
||||
L->top--; /* remove string from stack */
|
||||
return ts;
|
||||
|
||||
Reference in new issue
Block a user