diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-09-04 15:15:29 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-09-04 15:15:29 -0300 |
commit | 3a15c7ce4338de8414239a898f6c121294b4dde7 (patch) | |
tree | 2d449c2966afaf5d092b6d07d8f04b2b0a9b13bb /ltable.h | |
parent | 0a6b58c3aac2741cf1c84c44d168c73e3e478c4d (diff) | |
download | lua-github-3a15c7ce4338de8414239a898f6c121294b4dde7.tar.gz |
size for array part of a table ('sizearray') changed from 'int' to
'unsigned int', which allows twice as many elements in the array part
Diffstat (limited to 'ltable.h')
-rw-r--r-- | ltable.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,5 +1,5 @@ /* -** $Id: ltable.h,v 2.18 2013/08/30 16:01:37 roberto Exp roberto $ +** $Id: ltable.h,v 2.19 2014/07/29 16:22:24 roberto Exp roberto $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ @@ -30,14 +30,15 @@ LUAI_FUNC const TValue *luaH_getint (Table *t, lua_Integer key); LUAI_FUNC void luaH_setint (lua_State *L, Table *t, lua_Integer key, - TValue *value); + TValue *value); LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key); LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key); LUAI_FUNC TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key); LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key); LUAI_FUNC Table *luaH_new (lua_State *L); -LUAI_FUNC void luaH_resize (lua_State *L, Table *t, int nasize, int nhsize); -LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, int nasize); +LUAI_FUNC void luaH_resize (lua_State *L, Table *t, unsigned int nasize, + unsigned int nhsize); +LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, unsigned int nasize); LUAI_FUNC void luaH_free (lua_State *L, Table *t); LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key); LUAI_FUNC int luaH_getn (Table *t); |