lua-users home
lua-l archive

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


I've built Lua-5.1 beta for DOS and noticed that
string.rep could not create strings longer than
2^15-1, though it was possible to create strings
up to 2^16-1 bytes via concatenation.

This was fixed by changing line 96 in lstrlib.c
from:   int n = luaL_checkint(L, 2);
to:     size_t n = luaL_checkint(L, 2);

--
Shmuel