Skip to content

Commit 0188e56

Browse files
committed
warning free
1 parent c83bb01 commit 0188e56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/os/sendfile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ int swoole_sendfile(int out_fd, int in_fd, off_t *offset, size_t size)
3838

3939
do_sendfile:
4040
#ifdef __MACH__
41-
ret = sendfile(in_fd, out_fd, *offset, &size, &hdtr, 0);
41+
ret = sendfile(in_fd, out_fd, *offset, (long long *) &size, &hdtr, 0);
4242
#else
4343
ret = sendfile(in_fd, out_fd, *offset, size, 0, &sent_bytes, 0);
4444
#endif

0 commit comments

Comments
 (0)