Skip to content

Commit 8c8584b

Browse files
committed
Resolve a ctest FIXME regarding use of size_of in array lengths
(backport <#4713>) (cherry picked from commit 6f0ebb8) [ note that there was no FIXME comment on 0.2 - Trevor ]
1 parent 09c8436 commit 8c8584b

File tree

1 file changed

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

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,7 @@ s! {
136136
pub aio_offset: off_t,
137137
__next: *mut c_void,
138138
__prev: *mut c_void,
139-
#[cfg(target_pointer_width = "32")]
140-
__dummy4: [c_char; 24],
141-
#[cfg(target_pointer_width = "64")]
142-
__dummy4: [c_char; 16],
139+
__dummy4: [c_char; 32 - 2 * size_of::<*const ()>()],
143140
}
144141

145142
#[repr(align(8))]

0 commit comments

Comments
 (0)