소스 검색

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;
 	}
 	if (sizeof(int) == sizeof(void *)) {
-		ret = (void *)evhdl;
+		ret = (int *)evhdl;
 	} else {
 		ret = (int *)mg_malloc(sizeof(int));
 		if (ret) {