Skip to content

Commit ca993fb

Browse files
committed
Make st_size signed on s390x.
1 parent fef9af3 commit ca993fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/linux_raw/fs/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ pub struct Stat {
738738
pub st_gid: ffi::c_uint,
739739
pub(crate) __pad1: ffi::c_uint,
740740
pub st_rdev: ffi::c_ulong,
741-
pub st_size: ffi::c_ulong,
741+
pub st_size: ffi::c_long, // Linux has `c_ulong` but we make it signed.
742742
pub st_atime: ffi::c_long,
743743
pub st_atime_nsec: ffi::c_ulong,
744744
pub st_mtime: ffi::c_long,

0 commit comments

Comments
 (0)