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 {
190190
191191/// This data structure is used by the Zig language code generation and
192192/// therefore must be kept in sync with the compiler implementation.
193pub const AddressSpace = enum {
193pub const AddressSpace = enum(u4) {
194194 generic,
195195 gs,
196196 fs,
......@@ -283,7 +283,7 @@ pub const Type = union(enum) {
283283
284284 /// This data structure is used by the Zig language code generation and
285285 /// therefore must be kept in sync with the compiler implementation.
286 pub const Size = enum {
286 pub const Size = enum(u2) {
287287 One,
288288 Many,
289289 Slice,