Skip to content

Commit 6e914e8

Browse files
committed
std: fix std.os.uefi.tables bitcast
1 parent 100bc0a commit 6e914e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/std/os/uefi/tables.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,11 @@ pub const OpenProtocolAttributes = enum(u32) {
202202
_,
203203

204204
pub fn fromBits(bits: Bits) OpenProtocolAttributes {
205-
return @bitCast(bits);
205+
return @enumFromInt(@as(u32, @bitCast(bits)));
206206
}
207207

208208
pub fn toBits(self: OpenProtocolAttributes) Bits {
209-
return @bitCast(self);
209+
return @bitCast(@intFromEnum(self));
210210
}
211211
};
212212

0 commit comments

Comments
 (0)