mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
update lua 5.5.1
This commit is contained in:
@@ -541,7 +541,7 @@ static int searcher_Lua (lua_State *L) {
|
||||
const char *name = luaL_checkstring(L, 1);
|
||||
filename = findfile(L, name, "path", LUA_LSUBSEP);
|
||||
if (filename == NULL) return 1; /* module not found in this path */
|
||||
return checkload(L, (luaL_loadfile(L, filename) == LUA_OK), filename);
|
||||
return checkload(L, (luaL_loadfilex(L, filename, "bt") == LUA_OK), filename);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user