| ... | @@ -569,7 +569,7 @@ pub fn assertReadable(slice: []const volatile u8) void { | ... | @@ -569,7 +569,7 @@ pub fn assertReadable(slice: []const volatile u8) void { |
| 569 | /// Invokes detectable illegal behavior when the provided array is not aligned | 569 | /// Invokes detectable illegal behavior when the provided array is not aligned |
| 570 | /// to the provided amount. | 570 | /// to the provided amount. |
| 571 | pub fn assertAligned(ptr: anytype, comptime alignment: std.mem.Alignment) void { | 571 | pub fn assertAligned(ptr: anytype, comptime alignment: std.mem.Alignment) void { |
| 572 | const aligned_ptr: *align(alignment.toByteUnits()) anyopaque = @ptrCast(@alignCast(ptr)); | 572 | const aligned_ptr: *align(alignment.toByteUnits()) const anyopaque = @ptrCast(@alignCast(ptr)); |
| 573 | _ = aligned_ptr; | 573 | _ = aligned_ptr; |
| 574 | } | 574 | } |
| 575 | | 575 | |