mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-11 05:34:11 +03:00
int cast on macos
This commit is contained in:
parent
92afe5a46e
commit
f562d61505
@ -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)]
|
||||
|
@ -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();
|
||||
|
@ -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)]
|
||||
|
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user