# HG changeset patch # User jbe # Date 1335032476 -7200 # Node ID 593413f317f4f4a29ff915e34b11a8043da226a5 # Parent 343e121178d1c1a6e07864430f9597417399d5e8 Bugfix in Lua5.1 compatibility code: Wrong use of logic-or diff -r 343e121178d1 -r 593413f317f4 libraries/extos/extos.c --- a/libraries/extos/extos.c Sat Apr 21 19:50:25 2012 +0200 +++ b/libraries/extos/extos.c Sat Apr 21 20:21:16 2012 +0200 @@ -349,7 +349,7 @@ lua_newtable(L); luaL_setfuncs(L, extos_module_functions, 0); #else - luaL_register(L, lua_tostring(L, 1) || "extos", extos_module_functions); + luaL_register(L, lua_tostring(L, 1), extos_module_functions); #endif return 1; } diff -r 343e121178d1 -r 593413f317f4 libraries/multirand/multirand.c --- a/libraries/multirand/multirand.c Sat Apr 21 19:50:25 2012 +0200 +++ b/libraries/multirand/multirand.c Sat Apr 21 20:21:16 2012 +0200 @@ -114,7 +114,7 @@ lua_newtable(L); luaL_setfuncs(L, multirand_module_functions, 0); #else - luaL_register(L, lua_tostring(L, 1) || "multirand", multirand_module_functions); + luaL_register(L, lua_tostring(L, 1), multirand_module_functions); #endif return 1; }