Преглед изворни кода

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

Colm Sloan пре 7 година
родитељ
комит
7e005569be
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

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