[libc-commits] [libc] [libc] Enable -Wconversion (PR #127523)

via libc-commits libc-commits at lists.llvm.org
Fri Feb 28 07:17:11 PST 2025


================
@@ -48,7 +49,8 @@ template <typename T> class span {
   using const_reference = const T &;
   using iterator = T *;
 
-  LIBC_INLINE_VAR static constexpr size_type dynamic_extent = -1;
+  LIBC_INLINE_VAR static constexpr size_type dynamic_extent =
----------------
lntue wrote:

does adding `static_cast<size_type>(-1)` work, so that we don't need to add another dependency to this one?

https://github.com/llvm/llvm-project/pull/127523


More information about the libc-commits mailing list