]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/slice/cmp.rs
remove exclamation mark
[rust.git] / library / core / src / slice / cmp.rs
index 27c6b6f5bc02f474a8954a54c53de4f7f6347ed9..5e1b218e507bd1c23d3a59c1eb95db4ab518af3d 100644 (file)
@@ -1,6 +1,7 @@
 //! Comparison traits for `[T]`.
 
 use crate::cmp::{self, Ordering};
+use crate::ffi;
 use crate::mem;
 
 use super::from_raw_parts;
@@ -13,8 +14,7 @@
     ///
     /// Returns 0 for equal, < 0 for less than and > 0 for greater
     /// than.
-    // FIXME(#32610): Return type should be c_int
-    fn memcmp(s1: *const u8, s2: *const u8, n: usize) -> i32;
+    fn memcmp(s1: *const u8, s2: *const u8, n: usize) -> ffi::c_int;
 }
 
 #[stable(feature = "rust1", since = "1.0.0")]