| 60 | |
| 61 | |
| 62 | unsigned luaS_hashlongstr (TString *ts) { |
| 63 | lua_assert(ts->tt == LUA_VLNGSTR); |
| 64 | if (ts->extra == 0) { /* no hash? */ |
| 65 | size_t len = ts->u.lnglen; |
| 66 | ts->hash = luaS_hash(getlngstr(ts), len, ts->hash); |
| 67 | ts->extra = 1; /* now it has its hash */ |
| 68 | } |
| 69 | return ts->hash; |
| 70 | } |
| 71 | |
| 72 | |
| 73 | static void tablerehash (TString **vect, int osize, int nsize) { |
no test coverage detected