authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-05-01 20:14:17-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-06-10 20:40:03-07:00
logcac60a05a7c253e197b26b7d707103feefb850f9
tree9ca49a0fa54aba27a2292d3c4fb2b0dcf3ca26af
parent9aec2758cc29d27c31dcb0b4bb040484a885ef23

std.builtin: give some enums integer types


1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/builtin.zig+2-2
...@@ -190,7 +190,7 @@ pub const CallingConvention = enum {...@@ -190,7 +190,7 @@ pub const CallingConvention = enum {
190190
191/// This data structure is used by the Zig language code generation and191/// This data structure is used by the Zig language code generation and
192/// therefore must be kept in sync with the compiler implementation.192/// therefore must be kept in sync with the compiler implementation.
193pub const AddressSpace = enum {193pub const AddressSpace = enum(u4) {
194 generic,194 generic,
195 gs,195 gs,
196 fs,196 fs,
...@@ -283,7 +283,7 @@ pub const Type = union(enum) {...@@ -283,7 +283,7 @@ pub const Type = union(enum) {
283283
284 /// This data structure is used by the Zig language code generation and284 /// This data structure is used by the Zig language code generation and
285 /// therefore must be kept in sync with the compiler implementation.285 /// therefore must be kept in sync with the compiler implementation.
286 pub const Size = enum {286 pub const Size = enum(u2) {
287 One,287 One,
288 Many,288 Many,
289 Slice,289 Slice,