Skip to content

Commit 3a73d75

Browse files
committed
fix(utils): add u64 type conversion to pthread_self
1 parent ae80db1 commit 3a73d75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ mod check_err_tests {
7777

7878
/// libc::epoll_ctl wrapper
7979
pub fn pthread_self() -> Result<u64> {
80-
let thread_id = check_err(unsafe { libc::pthread_self() })?;
80+
let thread_id = check_err(unsafe { libc::pthread_self() })? as u64;
8181
Ok(thread_id)
8282
}
8383

0 commit comments

Comments
 (0)