lua-users home
lua-l archive

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


>>>>> "Luiz" == Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> writes:

 Luiz> All feedback welcome. Thanks.

in lvm.c:

#if !defined(LUA_USE_JUMPTABLE)
#define LUA_USE_JUMPTABLE	defined(__GNUC__)
#endif

[...]

#if LUA_USE_JUMPTABLE

The above results in undefined behavior. Instead use:

#if !defined(LUA_USE_JUMPTABLE)
#if defined(__GNUC__)
#define LUA_USE_JUMPTABLE	1
#else
#define LUA_USE_JUMPTABLE	0
#endif
#endif

-- 
Andrew.