lua-users home
lua-l archive

Re: Possible bug in getfunc() in lbaselib.c (5.1.1)?

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


Eric Raible wrote:
> Seems to me that a simpler (and more correct) patch would be to
> change lbaselib.c:121
> from:
> int level = luaL_optint(L, 1, 1);
> to:
> int level = luaL_checkint(L, 1);
That was my first thought, but then the error message is misleading
(that it expected a number).
Doug
-- 
Innovative Concepts, Inc. www.innocon.com 703-893-2007 x220

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