Explorar o código

test: suppress a few warnings (meta)

Michele Caini %!s(int64=3) %!d(string=hai) anos
pai
achega
61e872bb4e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      test/entt/meta/meta_data.cpp

+ 1 - 1
test/entt/meta/meta_data.cpp

@@ -79,7 +79,7 @@ struct multi_setter_t {
         : value{0} {}
 
     void from_double(double val) {
-        value = val;
+        value = static_cast<int>(val);
     }
 
     void from_string(const char *val) {