Commit 9ad1e83e63

Andrew Kelley <andrew@ziglang.org>
2025-08-14 00:14:26
zig fmt
1 parent f4d328e
Changed files (3)
lib
compiler
aro
aro
Attribute
Builtins
std
zig
c_translation
lib/compiler/aro/aro/Attribute/names.zig
@@ -1,4 +1,5 @@
 //! Autogenerated by GenerateDef from src/aro/Attribute/names.def, do not edit
+// zig fmt: off
 
 const std = @import("std");
 
lib/compiler/aro/aro/Builtins/Builtin.zig
@@ -1,4 +1,5 @@
 //! Autogenerated by GenerateDef from src/aro/Builtins/Builtin.def, do not edit
+// zig fmt: off
 
 const std = @import("std");
 
lib/std/zig/c_translation/helpers.zig
@@ -228,7 +228,7 @@ fn castInt(comptime DestType: type, target: anytype) DestType {
 }
 
 fn castPtr(comptime DestType: type, target: anytype) DestType {
-    return @constCast(@volatileCast(@alignCast(@ptrCast(target))));
+    return @ptrCast(@alignCast(@constCast(@volatileCast(target))));
 }
 
 fn castToPtr(comptime DestType: type, comptime SourceType: type, target: anytype) DestType {