Browse Source

test: suppress a few warnings (poly)

Michele Caini 3 years ago
parent
commit
c4507bd172
1 changed files with 3 additions and 3 deletions
  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));
     }
 };