Skip to content

Commit

Permalink
fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bmatcuk committed Feb 15, 2021
1 parent ae60165 commit 6b4f8f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub type OsFile = i32;

/// Cross platform representation of a socket handle.
#[cfg(windows)]
pub type Socket = usize;
pub type Socket = u64;
#[cfg(not(windows))]
pub type Socket = i32;

Expand Down
2 changes: 1 addition & 1 deletion src/handles/streams/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub fn socketpair(
))?;
socks.set_len(2);
}
Ok((socks[0], socks[1]))
Ok((socks[0] as _, socks[1] as _))
}

/// TCP handles are used to represent both TCP streams and servers.
Expand Down

0 comments on commit 6b4f8f1

Please sign in to comment.