Skip to content

Commit 6f0ebb8

Browse files
committed
Resolve a ctest FIXME regarding use of size_of in array lengths
1 parent 4f2c41a commit 6f0ebb8

File tree

1 file changed

+1
-5
lines changed
  • src/unix/linux_like/linux/musl

1 file changed

+1
-5
lines changed

src/unix/linux_like/linux/musl/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -422,11 +422,7 @@ s_no_extra_traits! {
422422
pub aio_offset: off_t,
423423
__next: *mut c_void,
424424
__prev: *mut c_void,
425-
// FIXME(ctest): length should be `32 - 2 * size_of::<*const ()>()`
426-
#[cfg(target_pointer_width = "32")]
427-
__dummy4: [c_char; 24],
428-
#[cfg(target_pointer_width = "64")]
429-
__dummy4: [c_char; 16],
425+
__dummy4: [c_char; 32 - 2 * size_of::<*const ()>()],
430426
}
431427

432428
pub struct sysinfo {

0 commit comments

Comments
 (0)