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

Roland McGrath via libc-commits libc-commits at lists.llvm.org
Wed Mar 5 14:55:44 PST 2025


================
@@ -293,7 +293,7 @@ LIBC_INLINE void store64_aligned(uint64_t value, Ptr dst, size_t offset) {
 // Advances the pointers p1 and p2 by offset bytes and decrease count by the
 // same amount.
 template <typename T1, typename T2>
-LIBC_INLINE void adjust(ptrdiff_t offset, T1 *__restrict &p1,
+LIBC_INLINE void adjust(uintptr_t offset, T1 *__restrict &p1,
----------------
frobtech wrote:

Indeed, AFAIK `ptrdiff_t` is the only correct type here.


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


More information about the libc-commits mailing list