webmcp

diff libraries/extos/extos.c @ 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 3d43a5cf17c1
children 34bf5f7abe0d
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  }

Impressum / About Us