mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
short string in matrix should be in fixed set
This commit is contained in:
@@ -47,7 +47,10 @@ mark_shared(lua_State *L) {
|
||||
case LUA_TSTRING: {
|
||||
const char *str = lua_tostring(L, idx);
|
||||
TString *ts = (TString *)(str - sizeof(UTString));
|
||||
makeshared(ts);
|
||||
if(ts->tt == LUA_TLNGSTR)
|
||||
makeshared(ts);
|
||||
else
|
||||
luaS_fix(G(L), ts);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user