瀏覽代碼

test: suppress a few warnings (poly)

Michele Caini 3 年之前
父節點
當前提交
c4507bd172
共有 1 個文件被更改,包括 3 次插入 和 3 次删除
  1. 3 3
      test/entt/poly/poly.cpp

+ 3 - 3
test/entt/poly/poly.cpp

@@ -18,7 +18,7 @@ struct common_type: Base {
     }
 
     int get() const {
-        return entt::poly_call<2>(*this);
+        return static_cast<int>(entt::poly_call<2>(*this));
     }
 
     void decr() {
@@ -26,11 +26,11 @@ struct common_type: Base {
     }
 
     int mul(int v) const {
-        return entt::poly_call<4>(*this, v);
+        return static_cast<int>(entt::poly_call<4>(*this, v));
     }
 
     int rand() const {
-        return entt::poly_call<5>(*this);
+        return static_cast<int>(entt::poly_call<5>(*this));
     }
 };