| 49 | |
| 50 | |
| 51 | unsigned int luaS_hashlongstr (TString *ts) { |
| 52 | lua_assert(ts->tt == LUA_VLNGSTR); |
| 53 | if (ts->extra == 0) { /* no hash? */ |
| 54 | size_t len = ts->u.lnglen; |
| 55 | ts->hash = luaS_hash(getlngstr(ts), len, ts->hash); |
| 56 | ts->extra = 1; /* now it has its hash */ |
| 57 | } |
| 58 | return ts->hash; |
| 59 | } |
| 60 | |
| 61 | |
| 62 | static void tablerehash (TString **vect, int osize, int nsize) { |
no test coverage detected