lua-users home
lua-l archive

Re: Problem with string.format in lua 5.0 & 5.1

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


Roberto,
my compiler (MS VC++ 13.10) complains in function addintlen (in lstrlib.c)
that it is dangerous to assign size_t value to int variable.
The code is:
 int l = strlen(form);
I changed l to be of type size_t.
Regards,
Todor
On 2005年12月15日 21:02:54 +0200, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
Is this will be available in 5.0?
No... This is not a bug, but an improvement.
And where I can get the code from?
Follows the significant part from lstrlib.c (for 5.1). (luaconf.h should
change according to previous message.)
-- Roberto

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