This commit is contained in:
Cloud Wu
2019-03-14 09:54:40 +08:00
parent 1d4308f33a
commit 3f38a711ad
8 changed files with 64 additions and 21 deletions

View File

@@ -397,7 +397,8 @@ internshrstr (lua_State *L, const char *str, size_t l) {
LUA_API void
luaS_expandshr(int n) {
ATOM_ADD(&SSM.n, n);
if (SSM.n < n)
ATOM_ADD(&SSM.n, n);
}
LUAI_FUNC TString *