Searched refs:newasize (Results 1 – 1 of 1) sorted by relevance
509 void luaH_resize (lua_State *L, Table *t, unsigned int newasize, in luaH_resize() argument517 if (newasize < oldasize) { /* will array shrink? */ in luaH_resize()518 t->alimit = newasize; /* pretend array has new size... */ in luaH_resize()521 for (i = newasize; i < oldasize; i++) { in luaH_resize()529 newarray = luaM_reallocvector(L, t->array, oldasize, newasize, TValue); in luaH_resize()530 if (unlikely(newarray == NULL && newasize > 0)) { /* allocation failed? */ in luaH_resize()537 t->alimit = newasize; in luaH_resize()538 for (i = oldasize; i < newasize; i++) /* clear new slice of the array */ in luaH_resize()