You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: expected type '*align(4) const SimpleObject', found '*const SimpleObject'
for (list[0..]) |*object| {
^
Struct alignment is apparently just set to the the alignment of the first field in the struct. This code compiles if the first field is the one with the highest alignment (a single field works, i32, bool works, i16, bool works, i32, i16 works, i16, i32 fails, etc).
Directly accessing list items (e.g. &list[3]) passes, so this code will also compile if you change the for loop to a while loop.
Struct alignment is apparently just set to the the alignment of the first field in the struct. This code compiles if the first field is the one with the highest alignment (a single field works,
i32, bool
works,i16, bool
works,i32, i16
works,i16, i32
fails, etc).Directly accessing list items (e.g.
&list[3]
) passes, so this code will also compile if you change the for loop to a while loop.Is this possibly related to #1052 ?
The text was updated successfully, but these errors were encountered: