aboutsummaryrefslogtreecommitdiff
path: root/src/value.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/value.zig
parent1637d8ac80b46599e276eb767208f54f0a30ccf0 (diff)
downloadzig-0b5f3c2ef96df02341cdf54f6eefb3cdb88781d8.tar.gz
zig-0b5f3c2ef96df02341cdf54f6eefb3cdb88781d8.zip
Replace @TagType uses, mostly with std.meta.Tag
Diffstat (limited to 'src/value.zig')
-rw-r--r--src/value.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/value.zig b/src/value.zig
index 5b0563ca98..50298da682 100644
--- a/src/value.zig
+++ b/src/value.zig
@@ -223,7 +223,7 @@ pub const Value = extern union {
pub fn tag(self: Value) 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;
}