From a0e6ae6f335016ea07958cdb665edcb499c22e8f Mon Sep 17 00:00:00 2001 From: jakubtomsu <66876057+jakubtomsu@users.noreply.github.com> Date: Wed, 22 Nov 2023 17:15:27 +0100 Subject: [PATCH] return uintptr from type_union_tag_offset --- core/intrinsics/intrinsics.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/intrinsics/intrinsics.odin b/core/intrinsics/intrinsics.odin index afa0efa36..c23cbd473 100644 --- a/core/intrinsics/intrinsics.odin +++ b/core/intrinsics/intrinsics.odin @@ -165,7 +165,7 @@ type_is_specialization_of :: proc($T, $S: typeid) -> bool --- type_is_variant_of :: proc($U, $V: typeid) -> bool where type_is_union(U) --- type_union_tag_type :: proc($T: typeid) -> typeid where type_is_union(T) --- -type_union_tag_offset :: proc($T: typeid) -> int where type_is_union(T) --- +type_union_tag_offset :: proc($T: typeid) -> uintptr where type_is_union(T) --- type_union_base_tag_value :: proc($T: typeid) -> int where type_is_union(U) --- type_union_variant_count :: proc($T: typeid) -> int where type_is_union(T) --- type_variant_type_of :: proc($T: typeid, $index: int) -> typeid where type_is_union(T) ---