Преглед изворни кода

test: suppress a few warnings (meta)

Michele Caini пре 3 година
родитељ
комит
61e872bb4e
1 измењених фајлова са 1 додато и 1 уклоњено
  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} {}
         : value{0} {}
 
 
     void from_double(double val) {
     void from_double(double val) {
-        value = val;
+        value = static_cast<int>(val);
     }
     }
 
 
     void from_string(const char *val) {
     void from_string(const char *val) {