1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-12-22 04:02:04 +03:00

Do not use in Lua 5.1

See comment on #194
This commit is contained in:
bel2125
2015-08-24 21:39:58 +02:00
parent d082320ba0
commit de4bd492c8

View File

@@ -1326,7 +1326,7 @@ static void mg_exec_lua_script(struct mg_connection *conn,
#else
for (i = 0; exports[i] != NULL && exports[i + 1] != NULL; i += 2) {
lua_CFunction func;
const char *name = (const char *)(exports[i]));
const char *name = (const char *)(exports[i]);
*(const void **)(&func) = exports[i + 1];
lua_register(L, name, func);
}