| ... | ... | @@ -1163,7 +1163,7 @@ const Local = struct { |
| 1163 | 1163 | capacity: u32, |
| 1164 | 1164 | }; |
| 1165 | 1165 | fn header(list: ListSelf) *Header { |
| 1166 | | return @ptrFromInt(@intFromPtr(list.bytes) - bytes_offset); |
| 1166 | return @alignCast(@ptrCast(list.bytes - bytes_offset)); |
| 1167 | 1167 | } |
| 1168 | 1168 | pub fn view(list: ListSelf) View { |
| 1169 | 1169 | const capacity = list.header().capacity; |
| ... | ... | @@ -1372,7 +1372,7 @@ const Shard = struct { |
| 1372 | 1372 | } |
| 1373 | 1373 | }; |
| 1374 | 1374 | fn header(map: @This()) *Header { |
| 1375 | | return @ptrFromInt(@intFromPtr(map.entries) - entries_offset); |
| 1375 | return @alignCast(@ptrCast(@as([*]u8, @ptrCast(map.entries)) - entries_offset)); |
| 1376 | 1376 | } |
| 1377 | 1377 | |
| 1378 | 1378 | const Entry = extern struct { |