Skip to content

Commit d429d0d

Browse files
committed
Replace std::os::raw::c_ssize_t with std::os::raw::c_ptrdiff_t
1 parent 6d42707 commit d429d0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/os/raw/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ pub use core::ffi::c_void;
165165
#[unstable(feature = "c_size_t", issue = "88345")]
166166
pub type c_size_t = usize;
167167

168-
/// Equivalent to C's `ssize_t` type, from `stddef.h` (or `cstddef` for C++).
168+
/// Equivalent to C's `ptrdiff_t` type, from `stddef.h` (or `cstddef` for C++).
169169
///
170170
/// This type is currently always [`isize`], however in the future there may be
171171
/// platforms where this is not the case.
172172
#[unstable(feature = "c_size_t", issue = "88345")]
173-
pub type c_ssize_t = isize;
173+
pub type c_ptrdiff_t = isize;

0 commit comments

Comments
 (0)