(silly) bug in Lua 3.0

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

(silly) bug in Lua 3.0

Roberto Ierusalimschy
  The macro "LUA_COMPAT2_5", that controls whether Lua should be
compatible with older versions, was 'misspelled' in opcode.c(1464):

#if COMPAT2_5

This error makes the function "lua_setfallback", from Lua 2.5, absent
from the final library. This silly mistake can be corrected by patching
opcode.c(1464) to:


or by defining COMPAT2_5 in the makefile ("-DCOMPAT2_5").

-- Roberto