Skip to content

Commit

Permalink
Make st_size signed on s390x.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Jan 31, 2025
1 parent 2a6826d commit b28c1a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/linux_raw/fs/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ pub struct Stat {
pub st_gid: ffi::c_uint,
pub(crate) __pad1: ffi::c_uint,
pub st_rdev: ffi::c_ulong,
pub st_size: ffi::c_ulong,
pub st_size: ffi::c_long, // Linux has `c_ulong` but we make it signed.
pub st_atime: ffi::c_long,
pub st_atime_nsec: ffi::c_ulong,
pub st_mtime: ffi::c_long,
Expand Down

0 comments on commit b28c1a2

Please sign in to comment.