diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-05-19 09:48:15 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-05-19 09:48:15 -0300 |
commit | e39ee2cc5841eff37f728ceeffd90cd748180f57 (patch) | |
tree | ac02098142128c251463fe5faa02f1adbda177e9 /ltable.h | |
parent | 84910e04e22ea451f507f66e2af6f9982a711a80 (diff) | |
download | lua-e39ee2cc5841eff37f728ceeffd90cd748180f57.tar.gz lua-e39ee2cc5841eff37f728ceeffd90cd748180f57.tar.bz2 lua-e39ee2cc5841eff37f728ceeffd90cd748180f57.zip |
'luaH_getn' must return 'lua_Unsigned' (or 'lua_Integer'), to
allow the boundary-search algorithm to use 'maxinteger' when
it cannot find a good upper bound.
Diffstat (limited to 'ltable.h')
-rw-r--r-- | ltable.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.h,v 2.22 2016/11/07 12:38:35 roberto Exp roberto $ | 2 | ** $Id: ltable.h,v 2.23 2016/12/22 13:08:50 roberto Exp roberto $ |
3 | ** Lua tables (hash) | 3 | ** Lua tables (hash) |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -54,7 +54,7 @@ LUAI_FUNC void luaH_resize (lua_State *L, Table *t, unsigned int nasize, | |||
54 | LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, unsigned int nasize); | 54 | LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, unsigned int nasize); |
55 | LUAI_FUNC void luaH_free (lua_State *L, Table *t); | 55 | LUAI_FUNC void luaH_free (lua_State *L, Table *t); |
56 | LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key); | 56 | LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key); |
57 | LUAI_FUNC int luaH_getn (Table *t); | 57 | LUAI_FUNC lua_Unsigned luaH_getn (Table *t); |
58 | 58 | ||
59 | 59 | ||
60 | #if defined(LUA_DEBUG) | 60 | #if defined(LUA_DEBUG) |