Do an explicit cast that doesn't make sense

I don't know why this is what the compiler wants,
given that the docs say it shouldn't need a cast,
but this is for some reason what the compiler wants.
This commit is contained in:
Richard Feldman 2022-10-16 18:43:03 -04:00
parent bb1693556b
commit e6fd0c62fd
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
4 changed files with 4 additions and 4 deletions

View file

@ -80,7 +80,7 @@ pub unsafe extern "C" fn roc_shm_open(
oflag: libc::c_int,
mode: libc::mode_t,
) -> libc::c_int {
libc::shm_open(name, oflag, mode as _)
libc::shm_open(name, oflag, mode as libc::c_uint)
}
#[cfg(unix)]