From 22b4fe2e028fdee3021691861f21812a26bb0b33 Mon Sep 17 00:00:00 2001 From: RUSshy <18348637+RUSshy@users.noreply.github.com> Date: Sat, 17 Jul 2021 14:07:33 +0200 Subject: [PATCH] Update handles.zig --- zig-ecs/src/ecs/handles.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zig-ecs/src/ecs/handles.zig b/zig-ecs/src/ecs/handles.zig index c4d9f5a..67d1609 100644 --- a/zig-ecs/src/ecs/handles.zig +++ b/zig-ecs/src/ecs/handles.zig @@ -59,7 +59,7 @@ pub fn Handles(comptime HandleType: type, comptime IndexType: type, comptime Ver } pub fn extractId(_: Self, handle: HandleType) IndexType { - return @truncate(IndexType, handle & @as(IndexType, registry.entity_traits.entity_mask)); + return @truncate(IndexType, handle & registry.entity_traits.entity_mask); } pub fn extractVersion(_: Self, handle: HandleType) VersionType {