From a4d2e17f601502bc34980c0725a2677d3ecdc885 Mon Sep 17 00:00:00 2001 From: menduz Date: Wed, 28 Jun 2023 19:40:58 -0300 Subject: [PATCH] fix: add missing comptime --- zig-ecs/src/ecs/registry.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zig-ecs/src/ecs/registry.zig b/zig-ecs/src/ecs/registry.zig index 39c7df7..143e832 100644 --- a/zig-ecs/src/ecs/registry.zig +++ b/zig-ecs/src/ecs/registry.zig @@ -322,7 +322,7 @@ pub const Registry = struct { } /// shortcut for add-or-replace raw comptime_int/float without having to @as cast - pub fn addOrReplaceTyped(self: *Registry, T: type, entity: Entity, value: T) void { + pub fn addOrReplaceTyped(self: *Registry, comptime T: type, entity: Entity, value: T) void { self.addOrReplace(entity, value); }