Browse Source

basic_entt_traits: suppress a warning by gcc

Michele Caini 3 years ago
parent
commit
d435fc7792
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/entt/entity/entity.hpp

+ 1 - 1
src/entt/entity/entity.hpp

@@ -114,7 +114,7 @@ public:
      * @return The integral representation of the version part.
      */
     [[nodiscard]] static constexpr version_type to_version(const value_type value) noexcept {
-        return (to_integral(value) >> length);
+        return static_cast<version_type>(to_integral(value) >> length);
     }
 
     /**