Skip to content

Commit 8861efd

Browse files
committed
format
1 parent a8040de commit 8861efd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

libcc2rs/src/compat.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ pub unsafe fn malloc_usable_size(ptr: *mut c_void) -> usize {
3737
}
3838
}
3939

40+
/// # Safety
41+
///
42+
/// Invokes the platform specific errno.
4043
pub unsafe fn cpp2rust_errno() -> *mut i32 {
41-
platform_errno_location()
44+
unsafe { platform_errno_location() }
4245
}

0 commit comments

Comments
 (0)