Kaynağa Gözat

test: suppress a few warnings (meta)

Michele Caini 3 yıl önce
ebeveyn
işleme
61e872bb4e
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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) {