Browse Source

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

Colm Sloan 7 years ago
parent
commit
7e005569be
1 changed files with 1 additions and 1 deletions
  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) {