From 6d1e4fb3da9794010dbfcb3c3b339e47804a4e71 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 26 Jul 2021 23:30:32 +0200 Subject: [PATCH] test: make tests for entity traits work when id_type is std::uint64_t --- test/entt/entity/entity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/entt/entity/entity.cpp b/test/entt/entity/entity.cpp index a730e2d2a..f3dd33212 100644 --- a/test/entt/entity/entity.cpp +++ b/test/entt/entity/entity.cpp @@ -30,7 +30,7 @@ TEST(Entity, Traits) { ASSERT_EQ(traits_type::construct(), static_cast(entt::null)); ASSERT_EQ(traits_type::construct(), static_cast(entt::tombstone)); - ASSERT_EQ(traits_type::construct(), entt::entity{0xFFFFFFFF}); + ASSERT_EQ(traits_type::construct(), entt::entity{~entt::id_type{}}); } TEST(Entity, Null) {