zig fmt: apply new cast builtin order

This commit is contained in:
Justus Klausecker
2025-08-03 14:53:52 +02:00
parent 81219493f8
commit 7c35070b90
29 changed files with 45 additions and 45 deletions

View File

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