Commit 9ad1e83e63
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 {