lua-users home
lua-l archive

Re: Possible bug in lua_next() ?

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Yes, there was another bug there (which means sloppy tests) :-(
Follows the correction:
file ltable.c, line 98 (function luaH_index):
- if (0 <= i && i < t->sizearray) { /* is `key' inside array part? */
+ if (0 <= i && i <= t->sizearray) { /* is `key' inside array part? */
-- Roberto

AltStyle によって変換されたページ (->オリジナル) /