Skip to content

Commit d148ca6

Browse files
committed
fix(sidecar): cast mode_t to u16 on macOS in shm_open_mode
1 parent d7d6fcd commit d148ca6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

datadog-ipc/src/platform/unix/mem_handle_macos.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ pub fn set_shm_open_mode(mode: u32) {
7676
}
7777

7878
fn shm_open_mode() -> Mode {
79-
Mode::from_bits_truncate(SHM_OPEN_MODE.load(Ordering::Relaxed))
79+
Mode::from_bits_truncate(SHM_OPEN_MODE.load(Ordering::Relaxed) as u16)
8080
}
8181

8282
impl ShmHandle {

0 commit comments

Comments
 (0)