diff --git a/stl/inc/vector b/stl/inc/vector index bf7b9dd80fb..efbd9e8d6f2 100644 --- a/stl/inc/vector +++ b/stl/inc/vector @@ -3203,7 +3203,7 @@ public: } // max_size bound by underlying storage limits - return _Ints_max * _VBITS; + return static_cast(_Ints_max * _VBITS); } _NODISCARD_EMPTY_MEMBER _CONSTEXPR20 bool empty() const noexcept {