Browse Source

Do not use in Lua 5.1

See comment on #194
bel2125 9 năm trước cách đây
mục cha
commit
de4bd492c8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);
 			}