This commit is contained in:
Andrew Kelley 2025-08-13 15:14:26 -07:00
parent f4d328e2ac
commit 9ad1e83e63
3 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
//! Autogenerated by GenerateDef from src/aro/Attribute/names.def, do not edit
// zig fmt: off
const std = @import("std");

View File

@ -1,4 +1,5 @@
//! Autogenerated by GenerateDef from src/aro/Builtins/Builtin.def, do not edit
// zig fmt: off
const std = @import("std");

View File

@ -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 {