Ver código fonte

Do not use in Lua 5.1

See comment on #194
bel2125 9 anos atrás
pai
commit
de4bd492c8
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/mod_lua.inl

+ 1 - 1
src/mod_lua.inl

@@ -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);
 			}