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

Fix compile error for Visual Studio

This commit is contained in:
bel
2015-04-28 21:14:51 +02:00
parent 7a01c0d0f7
commit f9295dffa6

View File

@@ -1161,8 +1161,8 @@ void mg_exec_lua_script(struct mg_connection *conn, const char *path,
if (exports != NULL) {
lua_pushglobaltable(L);
for (i = 0; exports[i] != NULL && exports[i + 1] != NULL; i += 2) {
lua_pushstring(L, (const char *)(exports[i]));
lua_CFunction func;
lua_pushstring(L, (const char *)(exports[i]));
*(const void**)(&func) = exports[i + 1];
lua_pushcclosure(L, func, 0);
lua_rawset(L, -3);