Explorar o código

Fix ret cast type on evhdl to work on older compilers.

Colm Sloan %!s(int64=7) %!d(string=hai) anos
pai
achega
7e005569be
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -2617,7 +2617,7 @@ event_create(void)
 		return 0;
 	}
 	if (sizeof(int) == sizeof(void *)) {
-		ret = (void *)evhdl;
+		ret = (int *)evhdl;
 	} else {
 		ret = (int *)mg_malloc(sizeof(int));
 		if (ret) {