ソースを参照

test: suppress warning due to integral conversions

Michele Caini 3 年 前
コミット
215b7a19c9
1 ファイル変更1 行追加1 行削除
  1. 1 1
      test/entt/entity/sparse_set.cpp

+ 1 - 1
test/entt/entity/sparse_set.cpp

@@ -343,7 +343,7 @@ TEST(SparseSetDeathTest, Bump) {
     ASSERT_DEATH(set.bump(entt::null), "");
     ASSERT_DEATH(set.bump(entt::null), "");
     ASSERT_DEATH(set.bump(entt::tombstone), "");
     ASSERT_DEATH(set.bump(entt::tombstone), "");
     ASSERT_DEATH(set.bump(entt::entity{42}), "");
     ASSERT_DEATH(set.bump(entt::entity{42}), "");
-    ASSERT_DEATH(set.bump(traits_type::construct(traits_type::to_entity(entt::entity{3}), traits_type::to_entity(entt::tombstone))), "");
+    ASSERT_DEATH(set.bump(traits_type::construct(traits_type::to_entity(entt::entity{3}), traits_type::to_version(entt::tombstone))), "");
 }
 }
 
 
 TEST(SparseSet, Insert) {
 TEST(SparseSet, Insert) {