lua-users home
lua-l archive

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


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);

- Eric