From 7c35070b901d9181ec3c666480a91eddf6c1abce Mon Sep 17 00:00:00 2001 From: Justus Klausecker Date: Sun, 3 Aug 2025 14:53:52 +0200 Subject: zig fmt: apply new cast builtin order --- test/behavior/array.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/behavior/array.zig') diff --git a/test/behavior/array.zig b/test/behavior/array.zig index 07eb632b1e..1eb4c12cbf 100644 --- a/test/behavior/array.zig +++ b/test/behavior/array.zig @@ -1091,7 +1091,7 @@ test "initialize pointer to anyopaque with reference to empty array initializer" const ptr: *const anyopaque = &.{}; // The above acts like an untyped initializer, since the `.{}` has no result type. // So, `ptr` points in memory to an empty tuple (`@TypeOf(.{})`). - const casted: *const @TypeOf(.{}) = @alignCast(@ptrCast(ptr)); + const casted: *const @TypeOf(.{}) = @ptrCast(@alignCast(ptr)); const loaded = casted.*; // `val` should be a `@TypeOf(.{})`, as expected. // We can't check the value, but it's zero-bit, so the type matching is good enough. -- cgit v1.2.3