Skip to content

Commit c0041f4

Browse files
committed
Use repr(align(x)) for redox in6_addr
1 parent e96b760 commit c0041f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sys/redox/net/netc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ pub struct in_addr {
2424
}
2525

2626
#[derive(Copy, Clone)]
27+
#[repr(align(4))]
2728
#[repr(C)]
2829
pub struct in6_addr {
2930
pub s6_addr: [u8; 16],
30-
__align: [u32; 0],
3131
}
3232

3333
#[derive(Copy, Clone)]

0 commit comments

Comments
 (0)