Skip to content

Commit

Permalink
Replace std::os::raw::c_ssize_t with std::os::raw::c_ptrdiff_t
Browse files Browse the repository at this point in the history
  • Loading branch information
thomcc committed Oct 30, 2021
1 parent 6d42707 commit d429d0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/std/src/os/raw/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ pub use core::ffi::c_void;
#[unstable(feature = "c_size_t", issue = "88345")]
pub type c_size_t = usize;

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

0 comments on commit d429d0d

Please sign in to comment.