int cast on macos

This commit is contained in:
Folkert 2022-10-16 18:32:55 +02:00
parent 92afe5a46e
commit f562d61505
No known key found for this signature in database
GPG Key ID: 1F17F6FFD112B97C
4 changed files with 5 additions and 5 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)
libc::shm_open(name, oflag, mode as _)
}
#[cfg(unix)]

View File

@ -99,7 +99,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)
libc::shm_open(name, oflag, mode as _)
}
#[cfg(unix)]
@ -298,7 +298,7 @@ pub extern "C" fn roc_fx_exePath(roc_str: &RocStr) -> RocResult<RocList<u8>, ()>
#[no_mangle]
pub extern "C" fn roc_fx_stdinLine() -> RocStr {
use std::io::{self, BufRead};
use std::io::BufRead;
let stdin = io::stdin();
let line1 = stdin.lock().lines().next().unwrap().unwrap();

View File

@ -98,7 +98,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)
libc::shm_open(name, oflag, mode as _)
}
#[cfg(unix)]

View File

@ -59,7 +59,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)
libc::shm_open(name, oflag, mode as _)
}
#[cfg(unix)]