aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lstring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lstring.c b/lstring.c
index 1032ad86..e921dd0f 100644
--- a/lstring.c
+++ b/lstring.c
@@ -207,8 +207,8 @@ static TString *internshrstr (lua_State *L, const char *str, size_t l) {
207 list = &tb->hash[lmod(h, tb->size)]; /* rehash with new size */ 207 list = &tb->hash[lmod(h, tb->size)]; /* rehash with new size */
208 } 208 }
209 ts = createstrobj(L, l, LUA_VSHRSTR, h); 209 ts = createstrobj(L, l, LUA_VSHRSTR, h);
210 memcpy(getshrstr(ts), str, l * sizeof(char));
211 ts->shrlen = cast_byte(l); 210 ts->shrlen = cast_byte(l);
211 memcpy(getshrstr(ts), str, l * sizeof(char));
212 ts->u.hnext = *list; 212 ts->u.hnext = *list;
213 *list = ts; 213 *list = ts;
214 tb->nuse++; 214 tb->nuse++;