webmcp

changeset 70:593413f317f4

Bugfix in Lua5.1 compatibility code: Wrong use of logic-or
author jbe
date Sat Apr 21 20:21:16 2012 +0200 (2012-04-21)
parents 343e121178d1
children 8b487a14414c
files libraries/extos/extos.c libraries/multirand/multirand.c
line diff
     1.1 --- a/libraries/extos/extos.c	Sat Apr 21 19:50:25 2012 +0200
     1.2 +++ b/libraries/extos/extos.c	Sat Apr 21 20:21:16 2012 +0200
     1.3 @@ -349,7 +349,7 @@
     1.4    lua_newtable(L);
     1.5    luaL_setfuncs(L, extos_module_functions, 0);
     1.6  #else
     1.7 -  luaL_register(L, lua_tostring(L, 1) || "extos", extos_module_functions);
     1.8 +  luaL_register(L, lua_tostring(L, 1), extos_module_functions);
     1.9  #endif
    1.10    return 1;
    1.11  }
     2.1 --- a/libraries/multirand/multirand.c	Sat Apr 21 19:50:25 2012 +0200
     2.2 +++ b/libraries/multirand/multirand.c	Sat Apr 21 20:21:16 2012 +0200
     2.3 @@ -114,7 +114,7 @@
     2.4    lua_newtable(L);
     2.5    luaL_setfuncs(L, multirand_module_functions, 0);
     2.6  #else
     2.7 -  luaL_register(L, lua_tostring(L, 1) || "multirand", multirand_module_functions);
     2.8 +  luaL_register(L, lua_tostring(L, 1), multirand_module_functions);
     2.9  #endif
    2.10    return 1;
    2.11  }

Impressum / About Us