| 56 | |
| 57 | |
| 58 | unsigned int luaS_hashlongstr (TString *ts) { |
| 59 | lua_assert(ts->tt == LUA_TLNGSTR); |
| 60 | if (ts->extra == 0) { /* no hash? */ |
| 61 | ts->hash = luaS_hash(getstr(ts), ts->u.lnglen, ts->hash); |
| 62 | ts->extra = 1; /* now it has its hash */ |
| 63 | } |
| 64 | return ts->hash; |
| 65 | } |
| 66 | |
| 67 | |
| 68 | /* |
no test coverage detected