mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 01:24:49 +01:00
uefi(guid): don't use std.mem.asBytes in format
Using std.mem.asBytes causes a panic when format is called as slices can no longer have hex options when formatting, so instead just print the ints.
This commit is contained in:
parent
0e3c6514a4
commit
1e26d885d3
1 changed files with 6 additions and 6 deletions
|
|
@ -112,12 +112,12 @@ pub const Guid = extern struct {
|
|||
const time_high_and_version = @byteSwap(self.time_high_and_version);
|
||||
|
||||
return writer.print("{x:0>8}-{x:0>4}-{x:0>4}-{x:0>2}{x:0>2}-{x}", .{
|
||||
std.mem.asBytes(&time_low),
|
||||
std.mem.asBytes(&time_mid),
|
||||
std.mem.asBytes(&time_high_and_version),
|
||||
std.mem.asBytes(&self.clock_seq_high_and_reserved),
|
||||
std.mem.asBytes(&self.clock_seq_low),
|
||||
std.mem.asBytes(&self.node),
|
||||
time_low,
|
||||
time_mid,
|
||||
time_high_and_version,
|
||||
self.clock_seq_high_and_reserved,
|
||||
self.clock_seq_low,
|
||||
self.node,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue