aboutsummaryrefslogtreecommitdiff
path: root/src/type.zig
diff options
context:
space:
mode:
authorTadeo Kondrak <me@tadeo.ca>2021-01-11 11:19:24 -0700
committerVeikka Tuominen <git@vexu.eu>2021-01-30 22:26:44 +0200
commit0b5f3c2ef96df02341cdf54f6eefb3cdb88781d8 (patch)
tree1a9a37f1a5fc96b56044f74c186101d5ac862654 /src/type.zig
parent1637d8ac80b46599e276eb767208f54f0a30ccf0 (diff)
downloadzig-0b5f3c2ef96df02341cdf54f6eefb3cdb88781d8.tar.gz
zig-0b5f3c2ef96df02341cdf54f6eefb3cdb88781d8.zip
Replace @TagType uses, mostly with std.meta.Tag
Diffstat (limited to 'src/type.zig')
-rw-r--r--src/type.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/type.zig b/src/type.zig
index be61f57c1d..1636407a87 100644
--- a/src/type.zig
+++ b/src/type.zig
@@ -110,7 +110,7 @@ pub const Type = extern union {
pub fn tag(self: Type) Tag {
if (self.tag_if_small_enough < Tag.no_payload_count) {
- return @intToEnum(Tag, @intCast(@TagType(Tag), self.tag_if_small_enough));
+ return @intToEnum(Tag, @intCast(std.meta.Tag(Tag), self.tag_if_small_enough));
} else {
return self.ptr_otherwise.tag;
}