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