Skip to content

Commit

Permalink
macOS: Silence warning in uio
Browse files Browse the repository at this point in the history
  • Loading branch information
lundman committed Jul 26, 2021
1 parent 872655b commit 9bd12b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/os/macos/spl/spl-uio.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ zfs_uiomove_iov(void *p, size_t n, zfs_uio_rw_t rw, zfs_uio_t *uio)

while (n && uio->uio_resid) {
cnt = MIN(iov->iov_len - skip, n);
switch (uio->uio_segflg) {
switch ((int)uio->uio_segflg) {
case UIO_SYSSPACE:
if (rw == UIO_READ)
bcopy(p, iov->iov_base + skip, cnt);
Expand Down

0 comments on commit 9bd12b3

Please sign in to comment.