lua-users home
lua-l archive

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


Hi list,

Here's a fun bug in 5.3's default luaconf.h definition of LUAL_BUFFERSIZE:

#if defined(LUA_FLOAT_LONGDOUBLE)
#define LUAL_BUFFERSIZE		8192
#else


I believe it should read:

#if LUA_FLOAT_TYPE == LUA_FLOAT_LONGDOUBLE
#define LUAL_BUFFERSIZE		8192
#else

Under the new way of defining types in luaconf.h, LUA_FLOAT_LONGDOUBLE will be defined regardless of what type is actually configured. This just stung me on an embedded project where the entire stack was less than 8KB so upgrading to Lua 5.3 made everything immediately blow up!

Cheers,

Tom