aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-05-01 20:14:17 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-06-10 20:40:03 -0700
commitcac60a05a7c253e197b26b7d707103feefb850f9 (patch)
tree9ca49a0fa54aba27a2292d3c4fb2b0dcf3ca26af /lib/std
parent9aec2758cc29d27c31dcb0b4bb040484a885ef23 (diff)
downloadzig-cac60a05a7c253e197b26b7d707103feefb850f9.tar.gz
zig-cac60a05a7c253e197b26b7d707103feefb850f9.zip
std.builtin: give some enums integer types
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/builtin.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig
index ec69270d15..ff6d20370c 100644
--- a/lib/std/builtin.zig
+++ b/lib/std/builtin.zig
@@ -190,7 +190,7 @@ pub const CallingConvention = enum {
/// This data structure is used by the Zig language code generation and
/// therefore must be kept in sync with the compiler implementation.
-pub const AddressSpace = enum {
+pub const AddressSpace = enum(u4) {
generic,
gs,
fs,
@@ -283,7 +283,7 @@ pub const Type = union(enum) {
/// This data structure is used by the Zig language code generation and
/// therefore must be kept in sync with the compiler implementation.
- pub const Size = enum {
+ pub const Size = enum(u2) {
One,
Many,
Slice,