mirror of
https://github.com/ziglang/zig.git
synced 2025-12-21 13:43:10 +00:00
zig fmt
This commit is contained in:
parent
f4d328e2ac
commit
9ad1e83e63
1
lib/compiler/aro/aro/Attribute/names.zig
vendored
1
lib/compiler/aro/aro/Attribute/names.zig
vendored
@ -1,4 +1,5 @@
|
|||||||
//! Autogenerated by GenerateDef from src/aro/Attribute/names.def, do not edit
|
//! Autogenerated by GenerateDef from src/aro/Attribute/names.def, do not edit
|
||||||
|
// zig fmt: off
|
||||||
|
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
|
|
||||||
|
|||||||
1
lib/compiler/aro/aro/Builtins/Builtin.zig
vendored
1
lib/compiler/aro/aro/Builtins/Builtin.zig
vendored
@ -1,4 +1,5 @@
|
|||||||
//! Autogenerated by GenerateDef from src/aro/Builtins/Builtin.def, do not edit
|
//! Autogenerated by GenerateDef from src/aro/Builtins/Builtin.def, do not edit
|
||||||
|
// zig fmt: off
|
||||||
|
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
|
|
||||||
|
|||||||
@ -228,7 +228,7 @@ fn castInt(comptime DestType: type, target: anytype) DestType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn castPtr(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 {
|
fn castToPtr(comptime DestType: type, comptime SourceType: type, target: anytype) DestType {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user